EEVEE Next: Default world null check before free
Fix previous commit
This commit is contained in:
@@ -59,7 +59,9 @@ bNodeTree *DefaultWorldNodeTree::nodetree_get(::World *wo)
|
||||
|
||||
World::~World()
|
||||
{
|
||||
BKE_id_free(nullptr, default_world_);
|
||||
if (default_world_ != nullptr) {
|
||||
BKE_id_free(nullptr, default_world_);
|
||||
}
|
||||
}
|
||||
|
||||
::World *World::default_world_get()
|
||||
|
||||
Reference in New Issue
Block a user