Skip to content

Commit

Permalink
Don’t deselect points when you select the already-selected tool.
Browse files Browse the repository at this point in the history
  • Loading branch information
flukeout committed Nov 25, 2018
1 parent 0c479f4 commit 30f95e1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions js/editor/tools.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,15 @@ const selectTool = toolName => {
if(selectedTool === "selector" && toolName === "selector") {
toggleExtrudeMode();
}
if(selectedTool != toolName) {
deselectGrids();
deselectPoints();
}
selectedTool = toolName;
svgScene.setAttribute("tool", toolName);
}
});
deselectGrids();
deselectPoints();

}

selectTool("selector");

0 comments on commit 30f95e1

Please sign in to comment.