Fix regression error on duplicated scene objects in registry
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user