浏览代码

[prefab] Fix material targetMaterial not reloading properly

Clément Espeute 3 周之前
父节点
当前提交
1b89c3c6c7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hrt/prefab/Material.hx

+ 1 - 1
hrt/prefab/Material.hx

@@ -676,7 +676,7 @@ class Material extends Prefab {
 			}));
 			ctx.onChange(this, null);
 			ctx.rebuildProperties();
-			ctx.scene.editor.queueRebuild(this);
+			ctx.scene.editor.queueRebuild(this.parent);
 
 			var fx = findParent(hrt.prefab.fx.FX);
 			if(fx != null)