diff options
Diffstat (limited to 'js/tools')
-rwxr-xr-x | js/tools/RotateObject3DTool.js | 1 | ||||
-rwxr-xr-x | js/tools/TranslateObject3DTool.js | 11 |
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 | ||
7 | var Translate3DToolBase = require("js/tools/Translate3DToolBase").Translate3DToolBase, | 7 | var 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 | ||
12 | exports.TranslateObject3DTool = Object.create(Translate3DToolBase, { | 13 | exports.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 | { |