瀏覽代碼

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));
 
 			} else {
-				refInstance = hxd.res.Loader.currentInstance.load(source).toPrefab().load();
+				refInstance = hxd.res.Loader.currentInstance.load(source).toPrefab().load().clone();
 			}
 
 			refInstance.shared.parentPrefab = this;