Simplify tool mode handling and improve material disposal in viewport-host
This commit is contained in:
@@ -95,10 +95,7 @@ export class EditorStore {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.toolMode !== "play") {
|
||||
this.previousEditingToolMode = this.toolMode;
|
||||
}
|
||||
|
||||
this.previousEditingToolMode = this.toolMode;
|
||||
this.toolMode = "play";
|
||||
this.emit();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user