Fix warning when cloning actor from prefab that is not a root

#3578
This commit is contained in:
Wojtek Figat
2025-09-14 14:25:19 +02:00
parent 9e1f488f22
commit 88773e71e5
2 changed files with 17 additions and 6 deletions

View File

@@ -904,6 +904,8 @@ ScriptingObject* Scripting::FindObject(Guid id, const MClass* type)
if (idsMapping)
{
idsMapping->TryGet(id, id);
if (!id.IsValid())
return nullptr; // Skip warning if object was mapped to empty id (intentionally ignored)
}
// Try to find it