make tool clean on every switch

This commit is contained in:
Val Erastov 2017-01-02 23:52:54 -08:00
parent ccd33ca7e0
commit 94b0c276e5

View file

@ -59,6 +59,7 @@ export class ToolManager {
}
takeControl(tool) {
this.tool.cleanup();
this.switchTool(tool);
this.tool.restart();
}
@ -69,7 +70,6 @@ export class ToolManager {
}
releaseControl() {
this.tool.cleanup();
this.takeControl(this.defaultTool);
}
}