aboutsummaryrefslogtreecommitdiff
path: root/js/tools/drawing-tool-base.js
diff options
context:
space:
mode:
authorJose Antonio Marquez2012-04-26 11:07:09 -0700
committerJose Antonio Marquez2012-04-26 11:07:09 -0700
commitd193e087bf24b538b6d88ae501b4b6e9781f501b (patch)
tree9a735388752f575fddf72240803c385316ff5c43 /js/tools/drawing-tool-base.js
parent7f5eb2105c2e5e0970072af88fa90baded7e55d6 (diff)
parentbcc8f8616f5ad4bf310928da6cbc01da12f6e468 (diff)
downloadninja-d193e087bf24b538b6d88ae501b4b6e9781f501b.tar.gz
Merge branch 'refs/heads/Ninja-Internal' into FileIO
Diffstat (limited to 'js/tools/drawing-tool-base.js')
-rwxr-xr-xjs/tools/drawing-tool-base.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/tools/drawing-tool-base.js b/js/tools/drawing-tool-base.js
index 476dca66..2283dfab 100755
--- a/js/tools/drawing-tool-base.js
+++ b/js/tools/drawing-tool-base.js
@@ -158,6 +158,8 @@ exports.DrawingToolBase = Montage.create(Montage, {
158 // get the center of the circle in stage world space 158 // get the center of the circle in stage world space
159 var swPos = viewUtils.postViewToStageWorld(MathUtils.transformPoint(psPos, hitRec.getPlaneMatrix()), hitRec.getElt()); 159 var swPos = viewUtils.postViewToStageWorld(MathUtils.transformPoint(psPos, hitRec.getPlaneMatrix()), hitRec.getElt());
160 160
161 //var swPos = hitRec.calculateStageWorldPoint(); todo figure out why we cannot just use this function instead of the above
162
161 // the stage world space point is now relative to the center of the 3D space. To 163 // the stage world space point is now relative to the center of the 3D space. To
162 // calculate the left and top offsets, this must be offset by the stage dimensions 164 // calculate the left and top offsets, this must be offset by the stage dimensions
163 swPos[0] += snapManager.getStageWidth() / 2.0; 165 swPos[0] += snapManager.getStageWidth() / 2.0;