aboutsummaryrefslogtreecommitdiff
path: root/js/tools/Rotate3DToolBase.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-04-04 11:11:58 -0700
committerValerio Virgillito2012-04-04 11:11:58 -0700
commita11ef2eed7049835c8bdfa50a2b893632c46eaa0 (patch)
treefcbb067044d339daa49622537e934bf3a309db96 /js/tools/Rotate3DToolBase.js
parentc6de22bf42be90b403491b5f87b1818d9020310c (diff)
downloadninja-a11ef2eed7049835c8bdfa50a2b893632c46eaa0.tar.gz
Squashed commit of Preparing for the montage undo-manager: Architecture changes
Reworked the add and remove elements into 1 function which can take 1 or more elements. Removed the _element from the selection array Many other changes related to those 2 changes Undo/Redo shortcuts are now using montage undo/redo manager. Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/tools/Rotate3DToolBase.js')
-rwxr-xr-xjs/tools/Rotate3DToolBase.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/tools/Rotate3DToolBase.js b/js/tools/Rotate3DToolBase.js
index b04e8b0a..eb2cdba4 100755
--- a/js/tools/Rotate3DToolBase.js
+++ b/js/tools/Rotate3DToolBase.js
@@ -262,7 +262,7 @@ exports.Rotate3DToolBase = Montage.create(ModifierToolBase, {
262 { 262 {
263 if(len === 1) 263 if(len === 1)
264 { 264 {
265 this.target = this.application.ninja.selectedElements[0]._element; 265 this.target = this.application.ninja.selectedElements[0];
266 drawUtils.addElement(this.target); 266 drawUtils.addElement(this.target);
267 267
268 viewUtils.pushViewportObj( this.target ); 268 viewUtils.pushViewportObj( this.target );
@@ -311,7 +311,7 @@ exports.Rotate3DToolBase = Montage.create(ModifierToolBase, {
311 this._targets = []; 311 this._targets = [];
312 for(var i = 0; i < len; i++) 312 for(var i = 0; i < len; i++)
313 { 313 {
314 var elt = this.application.ninja.selectedElements[i]._element; 314 var elt = this.application.ninja.selectedElements[i];
315// this._initProps3D(elt); 315// this._initProps3D(elt);
316 316
317 317