aboutsummaryrefslogtreecommitdiff
path: root/js/tools
diff options
context:
space:
mode:
Diffstat (limited to 'js/tools')
-rwxr-xr-xjs/tools/PenTool.js10
1 files changed, 6 insertions, 4 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js
index f310208e..96702756 100755
--- a/js/tools/PenTool.js
+++ b/js/tools/PenTool.js
@@ -410,10 +410,12 @@ exports.PenTool = Montage.create(ShapeTool, {
410 ShowSelectedSubpath:{ 410 ShowSelectedSubpath:{
411 value: function() { 411 value: function() {
412 if (this._selectedSubpath){ 412 if (this._selectedSubpath){
413 this._selectedSubpath.setPlaneMatrix(this._penPlaneMat); 413 if (!this._selectedSubpath.getPlaneMatrix()) {
414 var planeMatInv = glmat4.inverse( this._penPlaneMat, [] ); 414 this._selectedSubpath.setPlaneMatrix(this._penPlaneMat);
415 this._selectedSubpath.setPlaneMatrixInverse(planeMatInv); 415 var planeMatInv = glmat4.inverse( this._penPlaneMat, [] );
416 this._selectedSubpath.setDragPlane(this._dragPlane); 416 this._selectedSubpath.setPlaneMatrixInverse(planeMatInv);
417 this._selectedSubpath.setDragPlane(this._dragPlane);
418 }
417 419
418 this._selectedSubpath.createSamples(); //dirty bit is checked here 420 this._selectedSubpath.createSamples(); //dirty bit is checked here
419 this._selectedSubpath.buildLocalCoord(); //local dirty bit is checked here 421 this._selectedSubpath.buildLocalCoord(); //local dirty bit is checked here