diff options
author | Nivesh Rajbhandari | 2012-04-25 13:34:04 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-04-25 13:34:04 -0700 |
commit | 32a24988add5ba0ecf80caa31871cdd90e3eea5b (patch) | |
tree | fbf05f2dfc91e57ab9598046ff16798ea0ae1966 /js/tools/drawing-tool-base.js | |
parent | 60d6346a78fb5257eaf36f17a5fcb764a342c012 (diff) | |
parent | d3a6350163ada5644d34ed8d5c2a00cef4db2afc (diff) | |
download | ninja-32a24988add5ba0ecf80caa31871cdd90e3eea5b.tar.gz |
Merge branch 'refs/heads/ninja-internal' into WebGLMaterials
Diffstat (limited to 'js/tools/drawing-tool-base.js')
-rwxr-xr-x | js/tools/drawing-tool-base.js | 2 |
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; |