diff options
Diffstat (limited to 'js/tools/modifier-tool-base.js')
-rwxr-xr-x | js/tools/modifier-tool-base.js | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/js/tools/modifier-tool-base.js b/js/tools/modifier-tool-base.js index de73c861..03b100f2 100755 --- a/js/tools/modifier-tool-base.js +++ b/js/tools/modifier-tool-base.js | |||
@@ -405,6 +405,7 @@ exports.ModifierToolBase = Montage.create(DrawingTool, { | |||
405 | var index = this._snapIndex; | 405 | var index = this._snapIndex; |
406 | var pt0; | 406 | var pt0; |
407 | var useViewPoint = (this._inLocalMode && (this._targets.length === 1)); | 407 | var useViewPoint = (this._inLocalMode && (this._targets.length === 1)); |
408 | //console.log( "useViewPoint: " + useViewPoint ); | ||
408 | if (this._useQuadPt) | 409 | if (this._useQuadPt) |
409 | { | 410 | { |
410 | pt0 = this.GetQuadrantPoint(useViewPoint); | 411 | pt0 = this.GetQuadrantPoint(useViewPoint); |
@@ -427,6 +428,7 @@ exports.ModifierToolBase = Montage.create(DrawingTool, { | |||
427 | pt1 = MathUtils.transformPoint( pt1, this._startMat ); | 428 | pt1 = MathUtils.transformPoint( pt1, this._startMat ); |
428 | } | 429 | } |
429 | 430 | ||
431 | //console.log( "getMousePoints, useViewPoint: " + useViewPoint + ", " + pt0 + " => " + pt1 ); | ||
430 | return {pt0:pt0, pt1:pt1}; | 432 | return {pt0:pt0, pt1:pt1}; |
431 | } | 433 | } |
432 | else | 434 | else |
@@ -564,6 +566,7 @@ exports.ModifierToolBase = Montage.create(DrawingTool, { | |||
564 | var pt = hitRec.getScreenPoint(); | 566 | var pt = hitRec.getScreenPoint(); |
565 | this.upPoint.x = pt[0]; | 567 | this.upPoint.x = pt[0]; |
566 | this.upPoint.y = pt[1]; | 568 | this.upPoint.y = pt[1]; |
569 | this.upPoint.z = pt[2]; | ||
567 | } | 570 | } |
568 | } | 571 | } |
569 | } | 572 | } |
@@ -858,8 +861,10 @@ exports.ModifierToolBase = Montage.create(DrawingTool, { | |||
858 | } | 861 | } |
859 | } | 862 | } |
860 | 863 | ||
861 | this.DrawHandles(this._delta); | 864 | if (!this._isDrawing || (this.application.ninja.selectedElements.length == 1)) |
862 | if(this._canSnap) | 865 | this.DrawHandles(this._delta); |
866 | |||
867 | if(this._canSnap) | ||
863 | { | 868 | { |
864 | snapManager.drawLastHit(); | 869 | snapManager.drawLastHit(); |
865 | } | 870 | } |
@@ -898,10 +903,21 @@ exports.ModifierToolBase = Montage.create(DrawingTool, { | |||
898 | this._delta = null; | 903 | this._delta = null; |
899 | } | 904 | } |
900 | this.endDraw(event); | 905 | this.endDraw(event); |
906 | |||
907 | this.application.ninja.stage.draw(); | ||
908 | if (this._targets && (this._targets.length > 1)) | ||
909 | { | ||
910 | //this._origin = null; | ||
911 | this._updateHandlesOrigin(); | ||
912 | } | ||
901 | this.DrawHandles(); | 913 | this.DrawHandles(); |
902 | } | 914 | } |
903 | }, | 915 | }, |
904 | 916 | ||
917 | _updateHandlesOrigin: { | ||
918 | value: function () { } | ||
919 | }, | ||
920 | |||
905 | handleToolDoubleClick: { | 921 | handleToolDoubleClick: { |
906 | value: function(event) { | 922 | value: function(event) { |
907 | if(!this._target) | 923 | if(!this._target) |