Fix regression error on duplicated scene objects in registry

This commit is contained in:
Wojtek Figat
2025-03-08 13:31:01 +01:00
parent e760e5cc97
commit 679d56d7a3

View File

@@ -1042,7 +1042,8 @@ Asset* Content::LoadAsync(const Guid& id, const ScriptingTypeHandle& type)
LOAD_FAILED();
}
#endif
result->RegisterObject();
if (!result->IsInternalType())
result->RegisterObject();
// Register asset
AssetsLocker.Lock();