diff options
author | Nivesh Rajbhandari | 2012-06-01 16:09:51 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-06-01 16:09:51 -0700 |
commit | 6db48c84047466baadfb6132cba9dbc6e0d3799c (patch) | |
tree | 9d3fe5e4979490ec7c8a23e26c9725f323bf0de9 /js/tools | |
parent | 4f04bf2dc4e33bfdf3b9d19e04a5dc08704f8e98 (diff) | |
download | ninja-6db48c84047466baadfb6132cba9dbc6e0d3799c.tar.gz |
IKNinja-1610 and IKNinja-1647 - Can't use transform tool if you haven't used a drawing tool yet.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/tools')
-rwxr-xr-x | js/tools/drawing-tool-base.js | 2 |
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 | } |