aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-04-02 16:58:54 -0700
committerNivesh Rajbhandari2012-04-02 16:58:54 -0700
commitbf815cbda0f7a4f2b8ca9532745fa525ed60c8d3 (patch)
tree9781d70bb21eeecd753e579db00d79f5eeca2360
parent3f30c5ae31f0079162befc1eec6241141cbc79ce (diff)
downloadninja-bf815cbda0f7a4f2b8ca9532745fa525ed60c8d3.tar.gz
IKNinja-1376 - 3D values reverted when using Selection tool to move the object. (Only happen when 3D values set in PI)
We need to update the undo array for the tool if values are changed outside the active tool. I think this was the same bug causing IKNinja-1411. Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-xjs/tools/SelectionTool.js1
-rwxr-xr-xjs/tools/modifier-tool-base.js3
2 files changed, 3 insertions, 1 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js
index f9411f48..c00a2929 100755
--- a/js/tools/SelectionTool.js
+++ b/js/tools/SelectionTool.js
@@ -60,6 +60,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, {
60 else 60 else
61 { 61 {
62 this._canSnap = true; 62 this._canSnap = true;
63 this._updateTargets();
63 } 64 }
64 65
65 this.isDrawing = true; 66 this.isDrawing = true;
diff --git a/js/tools/modifier-tool-base.js b/js/tools/modifier-tool-base.js
index 94b806fd..f58ecb53 100755
--- a/js/tools/modifier-tool-base.js
+++ b/js/tools/modifier-tool-base.js
@@ -448,6 +448,7 @@ exports.ModifierToolBase = Montage.create(DrawingTool, {
448 { 448 {
449 this.isDrawing = true; 449 this.isDrawing = true;
450 this.application.ninja.stage.showSelectionBounds = false; 450 this.application.ninja.stage.showSelectionBounds = false;
451 this._updateTargets();
451 452
452 if(this._canSnap) 453 if(this._canSnap)
453 { 454 {
@@ -785,7 +786,7 @@ exports.ModifierToolBase = Montage.create(DrawingTool, {
785 { 786 {
786 this.target = this.application.ninja.currentDocument.documentRoot; 787 this.target = this.application.ninja.currentDocument.documentRoot;
787 } 788 }
788 this._updateTargets(); 789// this._updateTargets();
789 } 790 }
790 else 791 else
791 { 792 {