Skip to content

Commit

Permalink
fix(init): Makes sure world nodes are enabled after clean_up()
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerfarmer committed Dec 5, 2024
1 parent 1ddf570 commit 6d45b0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions blenderproc/python/utility/Initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d45b0a

Please sign in to comment.