mirror of
https://github.com/cocos/cocos4.git
synced 2026-11-21 08:02:39 +08:00
migrate commit 1b841bb31f
This commit is contained in:
@@ -1148,6 +1148,11 @@ var BaseNode = cc.Class(/** @lends cc.Node# */{
|
||||
}
|
||||
|
||||
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