mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
fix prefab asset instaniate (#8044)
This commit is contained in:
@@ -210,7 +210,7 @@ export function createNodeWithPrefab (node: Node) {
|
||||
legacyCC.game._isCloning = true;
|
||||
if (SUPPORT_JIT) {
|
||||
// @ts-expect-error: private member access
|
||||
prefabInfo._doInstantiate(node);
|
||||
prefabInfo.asset._doInstantiate(node);
|
||||
} else {
|
||||
// root in prefab asset is always synced
|
||||
const prefabRoot = prefabInfo.asset.data;
|
||||
|
||||
Reference in New Issue
Block a user