Address crash by properly updating currentLayer and refreshing selection to force update instance state (#48373)

This commit is contained in:
Nathan Marrs 2022-04-27 13:33:07 -07:00 committed by GitHub
parent 6945f1c483
commit fb25cf11e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,6 +91,8 @@ export class Scene {
// If editing is enabled, clear selecto instance
const destroySelecto = enableEditing;
this.initMoveable(destroySelecto, enableEditing);
this.currentLayer = this.root;
this.selection.next([]);
}
}, 100);
return this.root;