Explorar o código

[scene] Fix crash when drag&dropping fx references

Clément Espeute hai 6 meses
pai
achega
4b24935e56
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
 	}