mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
fileId of child of prefab should not cloned from existing node
This commit is contained in:
@@ -1089,6 +1089,11 @@ var Node = cc.Class({
|
||||
}
|
||||
|
||||
var thisPrefabInfo = this._prefab;
|
||||
if (CC_EDITOR && thisPrefabInfo) {
|
||||
if (this !== thisPrefabInfo.root) {
|
||||
_Scene.PrefabUtils.initClonedChildOfPrefab(cloned);
|
||||
}
|
||||
}
|
||||
var syncing = thisPrefabInfo && this === thisPrefabInfo.root && thisPrefabInfo.sync;
|
||||
if (syncing) {
|
||||
// copy non-serialized property
|
||||
|
||||
Reference in New Issue
Block a user