EEVEE Next: Default world null check before free

Fix previous commit
This commit is contained in:
Miguel Pozo
2023-05-16 15:35:27 +02:00
parent d0e635d077
commit 3b4354d4fb

View File

@@ -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()