[Bprocessor-commit] gl/src/net/sourceforge/bprocessor/gl/tool MoveTool.java,1.11,1.12
Status: Pre-Alpha
Brought to you by:
henryml
From: Nordholt <nor...@us...> - 2005-09-20 12:43:49
|
Update of /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9559 Modified Files: MoveTool.java Log Message: inner surfaces now only move in its own plane Index: MoveTool.java =================================================================== RCS file: /cvsroot/bprocessor/gl/src/net/sourceforge/bprocessor/gl/tool/MoveTool.java,v retrieving revision 1.11 retrieving revision 1.12 diff -C2 -d -r1.11 -r1.12 *** MoveTool.java 16 Sep 2005 13:01:04 -0000 1.11 --- MoveTool.java 20 Sep 2005 12:43:33 -0000 1.12 *************** *** 82,85 **** --- 82,87 ---- protected Plane findMovePlane() { Plane temp = null; + //indicating wherther or not we are moving an inner surface + boolean inner = false; if (target instanceof Vertex) { temp = new Plane(0, 0, 1, 0); *************** *** 88,95 **** } else if (target instanceof Surface) { Surface sel = (Surface)target; temp = sel.plane(); } // make a orthogonal plane to the current one ! if (moveMode == XZ) { Transformation trans = glv.getView().transformation(); int x = previousX; --- 90,98 ---- } else if (target instanceof Surface) { Surface sel = (Surface)target; + inner = sel.getIsInner(); temp = sel.plane(); } // make a orthogonal plane to the current one ! if (moveMode == XZ && !inner) { Transformation trans = glv.getView().transformation(); int x = previousX; |