ソースを参照

[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();
 	}