diff --git a/cocos2d/core/CCNode.js b/cocos2d/core/CCNode.js index 98e26aa366..c5dac1d7e5 100644 --- a/cocos2d/core/CCNode.js +++ b/cocos2d/core/CCNode.js @@ -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