aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-27 16:38:52 -0700
committerNivesh Rajbhandari2012-03-27 16:38:52 -0700
commit331ea08655245e3532e48bf160d5f68a04d8723f (patch)
treec0d2b9ec55ec6ab82576e35803bbcd76649022c4 /js/tools
parent75e7d29352787ee8182928403ecae09627117d57 (diff)
downloadninja-331ea08655245e3532e48bf160d5f68a04d8723f.tar.gz
IKNINJA-764 - The Local/Global options are not in synced with both 3D object rotate tool and 3D object translate tool.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools')
-rwxr-xr-xjs/tools/RotateObject3DTool.js1
-rwxr-xr-xjs/tools/TranslateObject3DTool.js11
2 files changed, 10 insertions, 2 deletions
diff --git a/js/tools/RotateObject3DTool.js b/js/tools/RotateObject3DTool.js
index 72af6eff..27352231 100755
--- a/js/tools/RotateObject3DTool.js
+++ b/js/tools/RotateObject3DTool.js
@@ -51,6 +51,7 @@ exports.RotateObject3DTool = Montage.create(Rotate3DToolBase, {
51 toolHandle._rotMat = Matrix.RotationZ( angle ); 51 toolHandle._rotMat = Matrix.RotationZ( angle );
52 } 52 }
53 } 53 }
54 this._inLocalMode = (this.options.selectedMode === "rotateLocally");
54 } 55 }
55 }, 56 },
56 57
diff --git a/js/tools/TranslateObject3DTool.js b/js/tools/TranslateObject3DTool.js
index 60633e74..4fac8187 100755
--- a/js/tools/TranslateObject3DTool.js
+++ b/js/tools/TranslateObject3DTool.js
@@ -4,15 +4,22 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved. 4(c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5</copyright> */ 5</copyright> */
6 6
7var Translate3DToolBase = require("js/tools/Translate3DToolBase").Translate3DToolBase, 7var Montage = require("montage/core/core").Montage,
8 Translate3DToolBase = require("js/tools/Translate3DToolBase").Translate3DToolBase,
8 drawUtils = require("js/helper-classes/3D/draw-utils").DrawUtils, 9 drawUtils = require("js/helper-classes/3D/draw-utils").DrawUtils,
9 viewUtils = require("js/helper-classes/3D/view-utils").ViewUtils, 10 viewUtils = require("js/helper-classes/3D/view-utils").ViewUtils,
10 snapManager = require("js/helper-classes/3D/snap-manager").SnapManager; 11 snapManager = require("js/helper-classes/3D/snap-manager").SnapManager;
11 12
12exports.TranslateObject3DTool = Object.create(Translate3DToolBase, { 13exports.TranslateObject3DTool = Montage.create(Translate3DToolBase, {
13 _toolID: { value: "translateObject3DTool" }, 14 _toolID: { value: "translateObject3DTool" },
14 _canOperateOnStage: { value: true }, 15 _canOperateOnStage: { value: true },
15 16
17 _initializeToolHandles: {
18 value: function() {
19 this._inLocalMode = (this.options.selectedMode === "rotateLocally");
20 }
21 },
22
16 initializeSnapping : { 23 initializeSnapping : {
17 value : function(event) 24 value : function(event)
18 { 25 {