Parcourir la source

[prefab] Fix material targetMaterial not reloading properly

Clément Espeute il y a 3 semaines
Parent
commit
1b89c3c6c7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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)