Browse Source

[scene] Fix crash when drag&dropping fx references

Clément Espeute 6 tháng trước cách đây
mục cha
commit
4b24935e56
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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();
 	}