Преглед на файлове

[scene] Fix crash when drag&dropping fx references

Clément Espeute преди 6 месеца
родител
ревизия
4b24935e56
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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();
 	}