Fix error when spawning prefab with rigidbody

This commit is contained in:
Wojtek Figat
2021-02-14 16:50:35 +01:00
parent 6bdc31df5a
commit 3bbda838a2
3 changed files with 6 additions and 2 deletions

View File

@@ -973,7 +973,7 @@ bool Level::loadScene(rapidjson_flax::Value& data, int32 engineBuild, bool autoI
if (obj && obj->GetParent() == nullptr)
{
sceneObjects->At(i) = nullptr;
LOG(Warning, "Scene object {0} {1} has missing parent object after scene load. Removing it.", obj->GetID(), obj->ToString());
LOG(Warning, "Scene object {0} {1} has missing parent object after load. Removing it.", obj->GetID(), obj->ToString());
obj->DeleteObject();
}
}