Fix duplicated actors after reparenting actor in Prefab

#718
This commit is contained in:
2022-07-26 23:10:00 +02:00
parent 9d26004864
commit 8beb732cb9
3 changed files with 29 additions and 19 deletions
+2 -2
View File
@@ -418,8 +418,8 @@ void SceneObjectsFactory::SynchronizeNewPrefabInstances(Context& context, Prefab
const Guid jParentId = JsonTools::GetGuid(jData, "ParentID");
//if (jParentId == actorParentId)
// break;
if (jParentId != actorId)
continue;
//if (jParentId != actorId)
// continue;
const Guid jPrefabObjectId = JsonTools::GetGuid(jData, "PrefabObjectID");
if (jPrefabObjectId != prefabObjectId)
continue;