diff options
author | Valerio Virgillito | 2012-06-20 11:33:02 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-20 11:33:02 -0700 |
commit | 52833c3d8a485944c42acc6ac0ae5139b3427da8 (patch) | |
tree | 7a857ba713a318df401739c21e1ca7ae59104f82 /js/tools/SelectionTool.js | |
parent | 4fb904eb5660cac28e2085d4aedce8fa249339b5 (diff) | |
parent | 3ed06c2a55b1ae840334efeb47f7743944ecb3ca (diff) | |
download | ninja-52833c3d8a485944c42acc6ac0ae5139b3427da8.tar.gz |
Merge pull request #313 from mqg734/GIO_Fixes
IKNINJA-1519 - Transform tool does not transform objects correctly in 3D space or in Top/Side view.
Diffstat (limited to 'js/tools/SelectionTool.js')
-rwxr-xr-x | js/tools/SelectionTool.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/js/tools/SelectionTool.js b/js/tools/SelectionTool.js index 8b644d4a..9bd885a4 100755 --- a/js/tools/SelectionTool.js +++ b/js/tools/SelectionTool.js | |||
@@ -583,11 +583,8 @@ var SelectionTool = exports.SelectionTool = Montage.create(ModifierToolBase, { | |||
583 | this.mouseUpHitRec = DrawingToolBase.getUpdatedSnapPoint(point.x, point.y, do3DSnap, this.mouseDownHitRec); | 583 | this.mouseUpHitRec = DrawingToolBase.getUpdatedSnapPoint(point.x, point.y, do3DSnap, this.mouseDownHitRec); |
584 | if (this._mouseDownHitRec && this._mouseUpHitRec) | 584 | if (this._mouseDownHitRec && this._mouseUpHitRec) |
585 | { | 585 | { |
586 | data = this.getDrawingData(event); | 586 | this.modifyElements({pt0:this._mouseDownHitRec.calculateElementScreenPoint(), |
587 | if(data) | 587 | pt1:this._mouseUpHitRec.calculateElementScreenPoint()}, event); |
588 | { | ||
589 | this.modifyElements({pt0:data.mouseDownPos, pt1:data.mouseUpPos}, event); | ||
590 | } | ||
591 | } | 588 | } |
592 | } | 589 | } |
593 | } | 590 | } |