浏览代码

[prefab] Fix clone not copying shared scene

Clément Espeute 1 年之前
父节点
当前提交
4bcb5df636
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      hrt/prefab/Prefab.hx

+ 2 - 0
hrt/prefab/Prefab.hx

@@ -164,6 +164,7 @@ class Prefab {
 		if( sh.currentPath == null ) sh.currentPath = shared.currentPath;
 		#if editor
 		sh.editor = this.shared.editor;
+		sh.scene = this.shared.scene;
 		#end
 		return this.clone(sh).make(sh);
 	}
@@ -184,6 +185,7 @@ class Prefab {
 				sh = new hrt.prefab.ContextShared(this.shared.currentPath, true);
 				#if editor
 				sh.editor = shared.editor;
+				sh.scene = shared.scene;
 				#end
 			}
 		}