This commit is contained in:
Huabing.Xu
2016-12-28 10:45:19 +08:00
parent e4c2369fcb
commit b7e441fcef
+5
View File
@@ -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