aboutsummaryrefslogtreecommitdiff
path: root/js/tools/modifier-tool-base.js
diff options
context:
space:
mode:
authorhwc4872012-04-04 12:37:43 -0700
committerhwc4872012-04-04 12:37:43 -0700
commitb6fa38e2680ccce73f4a195f9adffa552f1d237c (patch)
treec8fb726c3414a789798645728ae76c6e86607a01 /js/tools/modifier-tool-base.js
parent8e23febfa53f7ff37befe08fc2211fb166e0f200 (diff)
downloadninja-b6fa38e2680ccce73f4a195f9adffa552f1d237c.tar.gz
turned off translation handles during a multi-object drag.
Diffstat (limited to 'js/tools/modifier-tool-base.js')
-rwxr-xr-xjs/tools/modifier-tool-base.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/js/tools/modifier-tool-base.js b/js/tools/modifier-tool-base.js
index 07b28747..e684f58a 100755
--- a/js/tools/modifier-tool-base.js
+++ b/js/tools/modifier-tool-base.js
@@ -852,8 +852,10 @@ exports.ModifierToolBase = Montage.create(DrawingTool, {
852 } 852 }
853 } 853 }
854 854
855 this.DrawHandles(this._delta); 855 if (!this._isDrawing || (this.application.ninja.selectedElements.length == 1))
856 if(this._canSnap) 856 this.DrawHandles(this._delta);
857
858 if(this._canSnap)
857 { 859 {
858 snapManager.drawLastHit(); 860 snapManager.drawLastHit();
859 } 861 }
@@ -892,6 +894,13 @@ exports.ModifierToolBase = Montage.create(DrawingTool, {
892 this._delta = null; 894 this._delta = null;
893 } 895 }
894 this.endDraw(event); 896 this.endDraw(event);
897
898 this.application.ninja.stage.draw();
899 if (this._targets && (this._targets.length > 1))
900 {
901 this._origin = null;
902 this._updateHandlesOrigin();
903 }
895 this.DrawHandles(); 904 this.DrawHandles();
896 } 905 }
897 }, 906 },