diff options
author | Nivesh Rajbhandari | 2012-06-01 14:59:04 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-06-01 14:59:04 -0700 |
commit | 4dde49e0376e2cb64140f5baa85f5cadae0c9e16 (patch) | |
tree | 9e7ae3563af0cd90769000322d95887321f91793 | |
parent | fd264c58bfc5f53f57d9ddfd06114124b14bac04 (diff) | |
download | ninja-4dde49e0376e2cb64140f5baa85f5cadae0c9e16.tar.gz |
IKNinja-1609 - Stage rotates too fast when closing and re-opening file or switching between files.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-x | js/tools/RotateStage3DTool.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/js/tools/RotateStage3DTool.js b/js/tools/RotateStage3DTool.js index 12b21a64..9e117837 100755 --- a/js/tools/RotateStage3DTool.js +++ b/js/tools/RotateStage3DTool.js | |||
@@ -85,6 +85,12 @@ exports.RotateStage3DTool = Montage.create(Rotate3DToolBase, { | |||
85 | } | 85 | } |
86 | }, | 86 | }, |
87 | 87 | ||
88 | captureSelectionChange: { | ||
89 | value: function(event){ | ||
90 | this.eventManager.addEventListener("selectionDrawn", this, true); | ||
91 | } | ||
92 | }, | ||
93 | |||
88 | captureSelectionDrawn: { | 94 | captureSelectionDrawn: { |
89 | value: function(event){ | 95 | value: function(event){ |
90 | this._origin = null; | 96 | this._origin = null; |
@@ -114,6 +120,11 @@ exports.RotateStage3DTool = Montage.create(Rotate3DToolBase, { | |||
114 | this._origin = viewUtils.localToGlobal(eltCtr, stage); | 120 | this._origin = viewUtils.localToGlobal(eltCtr, stage); |
115 | this._setTransformOrigin(false); | 121 | this._setTransformOrigin(false); |
116 | this.DrawHandles(); | 122 | this.DrawHandles(); |
123 | |||
124 | if(event) | ||
125 | { | ||
126 | this.eventManager.removeEventListener("selectionDrawn", this, true); | ||
127 | } | ||
117 | } | 128 | } |
118 | }, | 129 | }, |
119 | 130 | ||