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();
|
LOAD_FAILED();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
result->RegisterObject();
|
if (!result->IsInternalType())
|
||||||
|
result->RegisterObject();
|
||||||
|
|
||||||
// Register asset
|
// Register asset
|
||||||
AssetsLocker.Lock();
|
AssetsLocker.Lock();
|
||||||
|
|||||||
Reference in New Issue
Block a user