Fix crash on prefab sync on instance with missing objects

This commit is contained in:
Wojtek Figat
2021-03-17 18:29:15 +01:00
parent f194004ebf
commit 0c74e2ff9d

View File

@@ -895,7 +895,10 @@ bool Prefab::ApplyAllInternal(Actor* targetActor, bool linkTargetActorObjectToPr
for (int32 i = 0; i < sceneObjects->Count(); i++)
{
auto obj = sceneObjects.Value->At(i);
obj->PostLoad();
if (obj)
{
obj->PostLoad();
}
}
// Update transformations