[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool SelectTool.java,1.17,1.18
Status: Pre-Alpha
Brought to you by:
henryml
From: Nordholt <nor...@us...> - 2005-09-12 18:08:44
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29603 Modified Files: SelectTool.java Log Message: made shure to remove deselected objects from the selection list Index: SelectTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/SelectTool.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** SelectTool.java 7 Sep 2005 11:30:34 -0000 1.17 --- SelectTool.java 12 Sep 2005 18:08:36 -0000 1.18 *************** *** 194,207 **** if (target instanceof Surface) { Surface selectedSurface = (Surface)target; ! Notification n = new Notification(Notification.SURFACE_DESELECTED, ! selectedSurface.getId()); ! Notifier.getInstance().sendNotification(n); deleteSurface(selectedSurface); } else if (target instanceof Edge) { Edge selectedEdge = (Edge)target; if (selectedEdge.getSurfaces().size() < 1) { ! Notification n = new Notification(Notification.EDGE_DESELECTED, ! selectedEdge.getId()); ! Notifier.getInstance().sendNotification(n); deleteEdge(selectedEdge); } --- 194,204 ---- if (target instanceof Surface) { Surface selectedSurface = (Surface)target; ! selection.remove(selectedSurface); deleteSurface(selectedSurface); + } else if (target instanceof Edge) { Edge selectedEdge = (Edge)target; if (selectedEdge.getSurfaces().size() < 1) { ! selection.remove(selectedEdge); deleteEdge(selectedEdge); } |