From 6d45b0a5f8a0d4ba508ef507b12007b203fa6f01 Mon Sep 17 00:00:00 2001 From: Dominik Winkelbauer Date: Thu, 5 Dec 2024 10:57:30 +0100 Subject: [PATCH] fix(init): Makes sure world nodes are enabled after clean_up() --- blenderproc/python/utility/Initializer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/blenderproc/python/utility/Initializer.py b/blenderproc/python/utility/Initializer.py index a5d868fc6..29a0e3e22 100644 --- a/blenderproc/python/utility/Initializer.py +++ b/blenderproc/python/utility/Initializer.py @@ -82,6 +82,7 @@ def clean_up(clean_up_camera: bool = False): new_world = bpy.data.worlds.new("World") bpy.context.scene.world = new_world new_world["category_id"] = 0 + new_world.use_nodes = True if clean_up_camera: # Create the camera