Browse Source

[scene] Fix crash when drag&dropping fx references

Clément Espeute 6 months ago
parent
commit
4b24935e56
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hrt/prefab/Material.hx

+ 1 - 1
hrt/prefab/Material.hx

@@ -307,7 +307,7 @@ class Material extends Prefab {
 		}
 		else {
 			// temporary untill we find a proper way to remove a material
-			shared.editor.queueRebuild(parent);
+			shared.editor?.queueRebuild(parent);
 		}
 		super.editorRemoveInstanceObjects();
 	}