Browse Source

updated SDK manipulation to escape a transformation when right-click

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@9461 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
bre..ns 13 years ago
parent
commit
4e6a90ec9b

+ 8 - 0
jme3-scenecomposer/src/com/jme3/gde/scenecomposer/tools/SelectTool.java

@@ -413,6 +413,14 @@ public class SelectTool extends SceneEditTool {
                 moving.sceneUndo();
                 moving = null;
                 clearState();
+            } else if (scaling != null) {
+                scaling.sceneUndo();
+                scaling = null;
+                clearState();
+            } else if (rotating != null) {
+                rotating.sceneUndo();
+                rotating = null;
+                clearState();
             }
             else if (!wasDraggingR && !wasDownR) { // wasn't dragging and was not down already
                 // pick on the spot