diff options
author | Eric Guzman | 2012-03-19 11:52:35 -0700 |
---|---|---|
committer | Eric Guzman | 2012-03-19 11:52:35 -0700 |
commit | dde5b5054f93db493e5d4d502e677f5781334b08 (patch) | |
tree | 4960525a5b183f0e966462c566817331bea0f3cd /js/tools/SelectionTool.js | |
parent | f08e3660384ed6ed2ba8ecf959c90fd1ade818eb (diff) | |
parent | 954f5a13e371febcb1c0fb8015c577ee51c23130 (diff) | |
download | ninja-dde5b5054f93db493e5d4d502e677f5781334b08.tar.gz |
Merge branch 'refs/heads/master' into CSSPanelUpdates
Diffstat (limited to 'js/tools/SelectionTool.js')
-rwxr-xr-x | js/tools/SelectionTool.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js index 5f48f74d..f9411f48 100755 --- a/js/tools/SelectionTool.js +++ b/js/tools/SelectionTool.js | |||
@@ -205,12 +205,12 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
205 | { | 205 | { |
206 | this._handleMode = null; | 206 | this._handleMode = null; |
207 | this._delta = null; | 207 | this._delta = null; |
208 | this.DrawHandles(); | ||
209 | } | 208 | } |
210 | 209 | ||
211 | this.endDraw(event); | 210 | this.endDraw(event); |
212 | this._canSnap = true; | 211 | this._canSnap = true; |
213 | this._use3DMode = false; | 212 | this._use3DMode = false; |
213 | this.DrawHandles(); | ||
214 | } | 214 | } |
215 | }, | 215 | }, |
216 | 216 | ||
@@ -577,6 +577,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
577 | { | 577 | { |
578 | // form the translation vector and post translate the matrix by it. | 578 | // form the translation vector and post translate the matrix by it. |
579 | delta = vecUtils.vecSubtract( 3, data.pt1, data.pt0 ); | 579 | delta = vecUtils.vecSubtract( 3, data.pt1, data.pt0 ); |
580 | delta[2] = 0; | ||
580 | var transMat = Matrix.Translation( delta ); | 581 | var transMat = Matrix.Translation( delta ); |
581 | this._moveElements(transMat); | 582 | this._moveElements(transMat); |
582 | } | 583 | } |
@@ -710,7 +711,7 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
710 | { | 711 | { |
711 | return; | 712 | return; |
712 | } | 713 | } |
713 | if(this._target && this._handles) | 714 | if(this._target && this._handles && (this._targets.length === 1)) |
714 | { | 715 | { |
715 | var len = this._handles.length; | 716 | var len = this._handles.length; |
716 | var i = 0, | 717 | var i = 0, |