Browse Source

Reference: Fix resolveRef prefab not cloned

Tom Spira 3 months ago
parent
commit
28d3bc3d1a
1 changed files with 1 additions and 1 deletions
  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;