Merge remote-tracking branch 'origin/master' into 1.10
This commit is contained in:
@@ -960,10 +960,12 @@ bool Level::loadScene(rapidjson_flax::Value& data, int32 engineBuild, Scene** ou
|
||||
objects[i] = obj;
|
||||
if (obj)
|
||||
{
|
||||
obj->RegisterObject();
|
||||
if (!obj->IsRegistered())
|
||||
obj->RegisterObject();
|
||||
#if USE_EDITOR
|
||||
// Auto-create C# objects for all actors in Editor during scene load when running in async (so main thread already has all of them)
|
||||
obj->CreateManaged();
|
||||
if (!obj->GetManagedInstance())
|
||||
obj->CreateManaged();
|
||||
#endif
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user