diff options
author | Armen Kesablyan | 2012-06-11 11:17:41 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-11 11:17:41 -0700 |
commit | 278769df00ced8620fd73371e38fe2e43f07ca3b (patch) | |
tree | deb505c8a66b660eee1f17a2c6c4c575c7939f6f /js/tools/RotateStage3DTool.js | |
parent | 555fd6efa605b937800b3979a4c68fa7eb8666ae (diff) | |
parent | 0f040acabfb7a4bf3138debec5aff869487ceb11 (diff) | |
download | ninja-278769df00ced8620fd73371e38fe2e43f07ca3b.tar.gz |
Merge branch 'refs/heads/master' into binding
Conflicts:
js/document/models/html.js
js/document/views/design.js
js/ninja.reel/ninja.js
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/tools/RotateStage3DTool.js')
-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 | ||