fileId of child of prefab should not cloned from existing node

This commit is contained in:
Jare Guo
2016-12-26 12:40:36 +08:00
parent ca9bf7d5ed
commit 1b841bb31f
+5
View File
@@ -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