Skip to content

Commit 2ca874f

Browse files
Fix possible crash when deleting an object whose instance was highlighted in canvas (#8260)
Fix #6476 Fix #6067
1 parent 3b8d42c commit 2ca874f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

newIDE/app/src/SceneEditor/index.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,12 @@ export default class SceneEditor extends React.Component<Props, State> {
17021702
done(true);
17031703
onObjectsDeleted();
17041704

1705+
// /!\ Force the instances editor to destroy and mount again the
1706+
// renderers to avoid keeping any references to existing instances
1707+
if (this.editorDisplay) {
1708+
this.editorDisplay.instancesHandlers.forceRemountInstancesRenderers();
1709+
}
1710+
17051711
// We modified the selection, so force an update of editors dealing with it.
17061712
this.forceUpdatePropertiesEditor();
17071713
this.updateToolbar();

0 commit comments

Comments
 (0)