[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool PencilTool.java,1.43,1.44
Status: Pre-Alpha
Brought to you by:
henryml
|
From: Michael L. <he...@us...> - 2005-12-05 19:25:49
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24114/src/net/sourceforge/bprocessor/gl/tool Modified Files: PencilTool.java Log Message: Small penciltool constructor fix. Index: PencilTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/PencilTool.java,v retrieving revision 1.43 retrieving revision 1.44 diff -C2 -d -r1.43 -r1.44 *** PencilTool.java 5 Dec 2005 17:25:20 -0000 1.43 --- PencilTool.java 5 Dec 2005 19:25:38 -0000 1.44 *************** *** 166,170 **** */ protected void setAlignVertex(Vertex vertex) { ! alignVertex = vertex; } --- 166,174 ---- */ protected void setAlignVertex(Vertex vertex) { ! alignVertex = vertex; ! clearXYZConstructors(); ! if (vertex != null) { ! makeXYZConstructors(vertex); ! } } *************** *** 218,224 **** */ private void clearXYZConstructors() { ! glv.getView().removeTempEdge(xConstructor); ! glv.getView().removeTempEdge(yConstructor); ! glv.getView().removeTempEdge(zConstructor); } --- 222,237 ---- */ private void clearXYZConstructors() { ! if (xConstructor != null) { ! glv.getView().removeTempEdge(xConstructor); ! xConstructor = null; ! } ! if (yConstructor != null) { ! glv.getView().removeTempEdge(yConstructor); ! yConstructor = null; ! } ! if (zConstructor != null) { ! glv.getView().removeTempEdge(zConstructor); ! zConstructor = null; ! } } *************** *** 235,240 **** setSnapVertex(null); number = ""; - clearXYZConstructors(); - makeXYZConstructors(vertex); { --- 248,251 ---- |