diff options
author | hwc487 | 2012-04-13 11:52:13 -0700 |
---|---|---|
committer | hwc487 | 2012-04-13 11:52:13 -0700 |
commit | 4f2fb5764703cab4ce3ada719b1395ed1e2f3b7c (patch) | |
tree | 3dc2e3c5a041179eed38eab1a00f851554e50005 /js/tools/TranslateObject3DTool.js | |
parent | 521df0ed9242efff45715998837068c87aca7efd (diff) | |
parent | 4b900ea5cd6bb77eb30cec8c03b9ec9fa662c1e9 (diff) | |
download | ninja-4f2fb5764703cab4ce3ada719b1395ed1e2f3b7c.tar.gz |
Merge branch 'master' of github.com:Motorola-Mobility/ninja-internal into Snapping_II
Conflicts:
js/helper-classes/3D/view-utils.js
js/panels/presets/animations-presets.reel/animations-presets.js
js/panels/presets/style-presets.reel/style-presets.js
js/panels/presets/transitions-presets.reel/transitions-presets.js
js/tools/Translate3DToolBase.js
Diffstat (limited to 'js/tools/TranslateObject3DTool.js')
-rwxr-xr-x | js/tools/TranslateObject3DTool.js | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/js/tools/TranslateObject3DTool.js b/js/tools/TranslateObject3DTool.js index 867bec7f..7c16df5d 100755 --- a/js/tools/TranslateObject3DTool.js +++ b/js/tools/TranslateObject3DTool.js | |||
@@ -4,20 +4,28 @@ 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, |
10 | vecUtils = require("js/helper-classes/3D/vec-utils").VecUtils, | ||
9 | viewUtils = require("js/helper-classes/3D/view-utils").ViewUtils, | 11 | viewUtils = require("js/helper-classes/3D/view-utils").ViewUtils, |
10 | vecUtils = require("js/helper-classes/3D/vec-utils").VecUtils, | 12 | vecUtils = require("js/helper-classes/3D/vec-utils").VecUtils, |
11 | snapManager = require("js/helper-classes/3D/snap-manager").SnapManager; | 13 | snapManager = require("js/helper-classes/3D/snap-manager").SnapManager; |
12 | 14 | ||
13 | exports.TranslateObject3DTool = Object.create(Translate3DToolBase, { | 15 | exports.TranslateObject3DTool = Montage.create(Translate3DToolBase, { |
14 | _toolID: { value: "translateObject3DTool" }, | 16 | _toolID: { value: "translateObject3DTool" }, |
15 | _canOperateOnStage: { value: true }, | 17 | _canOperateOnStage: { value: true }, |
16 | 18 | ||
19 | _initializeToolHandles: { | ||
20 | value: function() { | ||
21 | this._inLocalMode = (this.options.selectedMode === "rotateLocally"); | ||
22 | } | ||
23 | }, | ||
24 | |||
17 | initializeSnapping : { | 25 | initializeSnapping : { |
18 | value : function(event) | 26 | value : function(event) |
19 | { | 27 | { |
20 | console.log( "initializeSnapping" ); | 28 | // console.log( "initializeSnapping" ); |
21 | 29 | ||
22 | this._mouseDownHitRec = null; | 30 | this._mouseDownHitRec = null; |
23 | this._mouseUpHitRec = null; | 31 | this._mouseUpHitRec = null; |