[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool AbstractPencil.java, 1.56, 1.57
Status: Pre-Alpha
Brought to you by:
henryml
From: Michael L. <he...@us...> - 2006-08-15 13:25:50
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv26389/src/net/sourceforge/bprocessor/gl/tool Modified Files: AbstractPencil.java Log Message: Ensured that a vertex is hilited yellow when target for the AbstractPencil and dscendants. Index: AbstractPencil.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/AbstractPencil.java,v retrieving revision 1.56 retrieving revision 1.57 diff -C2 -d -r1.56 -r1.57 *** AbstractPencil.java 15 Aug 2006 09:51:14 -0000 1.56 --- AbstractPencil.java 15 Aug 2006 13:25:44 -0000 1.57 *************** *** 175,178 **** --- 175,188 ---- (Intersection) glv.getView().getObjectAtPoint(e.getX(), e.getY(), unwanted, View.INTERSECTIONS, work); + if (intersection != null) { + Space space = Project.getInstance().getActiveSpace(); + Vertex v = intersection.vertex(); + Set vertices = space.findByLocation(v.getX(), v.getY(), v.getZ(), 0.0000001); + if (!vertices.isEmpty()) { + v = (Vertex) vertices.iterator().next(); + intersection = new Intersection(v, Intersection.VERTEX, v); + } + } + if (constrain) { if (lockingEdge != null) { |