aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorPushkar Joshi2012-05-31 17:09:37 -0700
committerPushkar Joshi2012-05-31 17:09:37 -0700
commit06b609df1ff7833592faddbd8d7abb5b9f15a74d (patch)
tree19a8af74c58c9ea261f0842f36efdab959be3256 /js
parent0a7357bad4e646177b0420848844f503e0b64161 (diff)
downloadninja-06b609df1ff7833592faddbd8d7abb5b9f15a74d.tar.gz
change the behavior of what happens when alt is pressed while moving anchor handles (the behavior now matches the design)
Diffstat (limited to 'js')
-rwxr-xr-xjs/tools/PenTool.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js
index bb163202..1536a334 100755
--- a/js/tools/PenTool.js
+++ b/js/tools/PenTool.js
@@ -577,8 +577,8 @@ exports.PenTool = Montage.create(ShapeTool, {
577 localTranslation = VecUtils.vecSubtract(3, localMousePos, selAnchorPos[0]); 577 localTranslation = VecUtils.vecSubtract(3, localMousePos, selAnchorPos[0]);
578 selAnchor.translatePrev(localTranslation[0], localTranslation[1], localTranslation[2]); 578 selAnchor.translatePrev(localTranslation[0], localTranslation[1], localTranslation[2]);
579 if (!this._isAltDown){ 579 if (!this._isAltDown){
580 //selAnchor.translateNextFromPrev(localTranslation[0], localTranslation[1], localTranslation[2]); 580 selAnchor.translateNextFromPrev(localTranslation[0], localTranslation[1], localTranslation[2]);
581 selAnchor.setNextFromPrev(); 581 //selAnchor.setNextFromPrev();
582 } 582 }
583 } 583 }
584 else if (this._editMode & this.EDIT_NEXT) { 584 else if (this._editMode & this.EDIT_NEXT) {
@@ -586,8 +586,8 @@ exports.PenTool = Montage.create(ShapeTool, {
586 //move the prev point if Alt key is down to ensure relative angle between prev and next 586 //move the prev point if Alt key is down to ensure relative angle between prev and next
587 selAnchor.translateNext(localTranslation[0], localTranslation[1], localTranslation[2]); 587 selAnchor.translateNext(localTranslation[0], localTranslation[1], localTranslation[2]);
588 if (!this._isAltDown){ 588 if (!this._isAltDown){
589 //selAnchor.translatePrevFromNext(localTranslation[0], localTranslation[1], localTranslation[2]); 589 selAnchor.translatePrevFromNext(localTranslation[0], localTranslation[1], localTranslation[2]);
590 selAnchor.setPrevFromNext(); 590 //selAnchor.setPrevFromNext();
591 } 591 }
592 } 592 }
593 else if (this._editMode & this.EDIT_PREV_NEXT) { 593 else if (this._editMode & this.EDIT_PREV_NEXT) {