aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
Diffstat (limited to 'js/tools')
-rwxr-xr-xjs/tools/TranslateObject3DTool.js3
-rwxr-xr-xjs/tools/modifier-tool-base.js2
2 files changed, 3 insertions, 2 deletions
diff --git a/js/tools/TranslateObject3DTool.js b/js/tools/TranslateObject3DTool.js
index 7163f005..867bec7f 100755
--- a/js/tools/TranslateObject3DTool.js
+++ b/js/tools/TranslateObject3DTool.js
@@ -7,6 +7,7 @@ No rights, expressed or implied, whatsoever to this software are provided by Mot
7var Translate3DToolBase = require("js/tools/Translate3DToolBase").Translate3DToolBase, 7var Translate3DToolBase = require("js/tools/Translate3DToolBase").Translate3DToolBase,
8 drawUtils = require("js/helper-classes/3D/draw-utils").DrawUtils, 8 drawUtils = require("js/helper-classes/3D/draw-utils").DrawUtils,
9 viewUtils = require("js/helper-classes/3D/view-utils").ViewUtils, 9 viewUtils = require("js/helper-classes/3D/view-utils").ViewUtils,
10 vecUtils = require("js/helper-classes/3D/vec-utils").VecUtils,
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 = Object.create(Translate3DToolBase, {
@@ -128,7 +129,7 @@ exports.TranslateObject3DTool = Object.create(Translate3DToolBase, {
128 129
129 // only do quadrant snapping if the 4 corners of the element are in the drag plane 130 // only do quadrant snapping if the 4 corners of the element are in the drag plane
130 131
131 var sign = MathUtils.fpSign( VecUtils.vecDot(3,this._dragPlane,[0,0,1]) + this._dragPlane[3] - 1.0); 132 var sign = MathUtils.fpSign( vecUtils.vecDot(3,this._dragPlane,[0,0,1]) + this._dragPlane[3] - 1.0);
132 this._shouldUseQuadPt = (sign == 0); 133 this._shouldUseQuadPt = (sign == 0);
133 134
134 var wpHitRec = hitRec.convertToWorkingPlane( this._dragPlane ); 135 var wpHitRec = hitRec.convertToWorkingPlane( this._dragPlane );
diff --git a/js/tools/modifier-tool-base.js b/js/tools/modifier-tool-base.js
index e684f58a..b6589cba 100755
--- a/js/tools/modifier-tool-base.js
+++ b/js/tools/modifier-tool-base.js
@@ -177,7 +177,7 @@ exports.ModifierToolBase = Montage.create(DrawingTool, {
177 } 177 }
178 178
179 // only do quadrant snapping if the 4 corners of the element are in the drag plane 179 // only do quadrant snapping if the 4 corners of the element are in the drag plane
180 var sign = MathUtils.fpSign( VecUtils.vecDot(3,this._dragPlane,[0,0,1]) + this._dragPlane[3] - 1.0); 180 var sign = MathUtils.fpSign( vecUtils.vecDot(3,this._dragPlane,[0,0,1]) + this._dragPlane[3] - 1.0);
181 this._shouldUseQuadPt = (sign == 0) 181 this._shouldUseQuadPt = (sign == 0)
182 182
183 var wpHitRec = hitRec.convertToWorkingPlane( this._dragPlane ); 183 var wpHitRec = hitRec.convertToWorkingPlane( this._dragPlane );