Fix crash when applying prefab that includes both removed and added objects

This commit is contained in:
Wojtek Figat
2021-11-04 16:00:02 +01:00
parent 568c70f2f7
commit b0ca1cc652

View File

@@ -364,6 +364,7 @@ bool PrefabInstanceData::SynchronizePrefabInstances(Array<PrefabInstanceData>& p
obj->SetParent(nullptr);
sceneObjects.Value->RemoveAtKeepOrder(i);
deserializeSceneObjectIndex--;
existingObjectsCount--;
}
}