Преглед изворни кода

Reference: Fix resolveRef prefab not cloned

Tom Spira пре 3 месеци
родитељ
комит
28d3bc3d1a
1 измењених фајлова са 1 додато и 1 уклоњено
  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));
 				refInstance = hrt.prefab.Prefab.createFromDynamic(refInstanceData, null, new ContextShared(source, null, null, true));
 
 
 			} else {
 			} else {
-				refInstance = hxd.res.Loader.currentInstance.load(source).toPrefab().load();
+				refInstance = hxd.res.Loader.currentInstance.load(source).toPrefab().load().clone();
 			}
 			}
 
 
 			refInstance.shared.parentPrefab = this;
 			refInstance.shared.parentPrefab = this;