aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rwxr-xr-xjs/tools/PenTool.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/tools/PenTool.js b/js/tools/PenTool.js
index 016d6ded..d18f371a 100755
--- a/js/tools/PenTool.js
+++ b/js/tools/PenTool.js
@@ -737,14 +737,24 @@ exports.PenTool = Montage.create(ShapeTool, {
737 this._isDrawing = false; 737 this._isDrawing = false;
738 this._editMode = this.EDIT_NONE; 738 this._editMode = this.EDIT_NONE;
739 739
740 //if we're not in edit_path mode and we closed the selected subpath, then we are going to start a new subpath, so we nullify the selected subpath
741 if (this._selectedSubpath.getIsClosed() && this._entryEditMode !== this.ENTRY_SELECT_PATH){
742 this._selectedSubpath = null;
743 }
744
740 if (this._selectedSubpath){ 745 if (this._selectedSubpath){
741 this.DrawSubpathAnchors(this._selectedSubpath);//render the subpath anchors on canvas 746 this.DrawSubpathAnchors(this._selectedSubpath);//render the subpath anchors on canvas
747 }else{
748 //clear the canvas
749 this.application.ninja.stage.clearDrawingCanvas();
742 } 750 }
743 751
744 if (!this._trackMouseMoveWhenUp){ 752 if (!this._trackMouseMoveWhenUp){
745 NJevent("disableStageMove"); 753 NJevent("disableStageMove");
746 } 754 }
747 this._hoveredAnchorIndex = -1; 755 this._hoveredAnchorIndex = -1;
756
757
748 } 758 }
749 }, 759 },
750 760