aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorValerio Virgillito2012-06-01 16:19:18 -0700
committerValerio Virgillito2012-06-01 16:19:18 -0700
commitfa7b5f8acc933fd12d31c24b350156b42c26b96a (patch)
treec8a4463ed7621ae43cb661aad6ebca021251ecb6 /js
parent75fc82ce49d6f1eb05dc950b46292d42b5856005 (diff)
parent3ac4d43ccb04ee29ea0018fe3b301b2334bc6665 (diff)
downloadninja-fa7b5f8acc933fd12d31c24b350156b42c26b96a.tar.gz
Merge branch 'document-bindings-fix' of github.com:mencio/ninja-internal into document-bindings-fix
Diffstat (limited to 'js')
-rwxr-xr-xjs/tools/drawing-tool-base.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/js/tools/drawing-tool-base.js b/js/tools/drawing-tool-base.js
index 3549de1c..a752ad65 100755
--- a/js/tools/drawing-tool-base.js
+++ b/js/tools/drawing-tool-base.js
@@ -86,7 +86,7 @@ exports.DrawingToolBase = Montage.create(Component, {
86// return null; 86// return null;
87// } 87// }
88 if(downHitRec) { 88 if(downHitRec) {
89 hitRec = hitRec.convertToWorkingPlane(this.dragPlane); 89 hitRec = hitRec.convertToWorkingPlane(this.dragPlane || downHitRec.getPlane());
90 } else if ((hitRec.getType() !== hitRec.SNAP_TYPE_STAGE) && !hitRec.isSomeGridTypeSnap()) { 90 } else if ((hitRec.getType() !== hitRec.SNAP_TYPE_STAGE) && !hitRec.isSomeGridTypeSnap()) {
91 hitRec = hitRec.convertToWorkingPlane( snapManager.getDragPlane() ); 91 hitRec = hitRec.convertToWorkingPlane( snapManager.getDragPlane() );
92 } 92 }