Cleanup 1
This commit is contained in:
@@ -78,8 +78,10 @@ namespace FlaxEditor.Content
|
||||
if (actor == null)
|
||||
{
|
||||
// Create default prefab root object
|
||||
actor = new EmptyActor();
|
||||
actor.Name = "Root";
|
||||
actor = new EmptyActor
|
||||
{
|
||||
Name = "Root"
|
||||
};
|
||||
|
||||
// Cleanup it after usage
|
||||
Object.Destroy(actor, 20.0f);
|
||||
|
||||
Reference in New Issue
Block a user