Forráskód Böngészése

Reference: Fix resolveRef prefab not cloned

Tom Spira 3 hónapja
szülő
commit
28d3bc3d1a
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      hrt/prefab/Reference.hx

+ 1 - 1
hrt/prefab/Reference.hx

@@ -157,7 +157,7 @@ class Reference extends Object3D {
 				refInstance = hrt.prefab.Prefab.createFromDynamic(refInstanceData, null, new ContextShared(source, null, null, true));
 
 			} else {
-				refInstance = hxd.res.Loader.currentInstance.load(source).toPrefab().load();
+				refInstance = hxd.res.Loader.currentInstance.load(source).toPrefab().load().clone();
 			}
 
 			refInstance.shared.parentPrefab = this;