Fix crash when applying prefab that includes both removed and added objects
This commit is contained in:
@@ -364,6 +364,7 @@ bool PrefabInstanceData::SynchronizePrefabInstances(Array<PrefabInstanceData>& p
|
||||
obj->SetParent(nullptr);
|
||||
|
||||
sceneObjects.Value->RemoveAtKeepOrder(i);
|
||||
deserializeSceneObjectIndex--;
|
||||
existingObjectsCount--;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user