diff options
author | Valerio Virgillito | 2012-05-08 14:41:27 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-05-08 14:41:27 -0700 |
commit | d220c02e246b30509b28a47fa04916ca2b8122e4 (patch) | |
tree | 4b9165b807b026fb67ec34e8a40dfcb7f1152685 /js/tools/drawing-tool-base.js | |
parent | 53747ce689ddcdc19e586b30d6f356b3b0539731 (diff) | |
parent | 15c7bdad38a83d192bd5a1d55a54362c12c73d38 (diff) | |
download | ninja-d220c02e246b30509b28a47fa04916ca2b8122e4.tar.gz |
Merge pull request #201 from ericmueller/Snapping
fixes for 2D and 3D translation.
Diffstat (limited to 'js/tools/drawing-tool-base.js')
-rwxr-xr-x | js/tools/drawing-tool-base.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/tools/drawing-tool-base.js b/js/tools/drawing-tool-base.js index 376b3a27..84641754 100755 --- a/js/tools/drawing-tool-base.js +++ b/js/tools/drawing-tool-base.js | |||
@@ -36,9 +36,8 @@ exports.DrawingToolBase = Montage.create(Montage, { | |||
36 | * 2 - Y value converted to screen point | 36 | * 2 - Y value converted to screen point |
37 | */ | 37 | */ |
38 | getInitialSnapPoint: { | 38 | getInitialSnapPoint: { |
39 | value: function(x, y, shapeCanvas) { | 39 | value: function(x, y, shapeCanvas) |
40 | snapManager.clearDragPlane(); | 40 | { |
41 | |||
42 | // update the snap settings | 41 | // update the snap settings |
43 | snapManager.enableSnapAlign( snapManager.snapAlignEnabledAppLevel() ); | 42 | snapManager.enableSnapAlign( snapManager.snapAlignEnabledAppLevel() ); |
44 | snapManager.enableElementSnap( snapManager.elementSnapEnabledAppLevel() ); | 43 | snapManager.enableElementSnap( snapManager.elementSnapEnabledAppLevel() ); |