Skip to content

Commit

Permalink
Merge pull request #1166 from DLR-RM/iss_clean_up_world_nodes
Browse files Browse the repository at this point in the history
fix(init): Makes sure world nodes are enabled after clean_up()
  • Loading branch information
cornerfarmer authored Dec 5, 2024
2 parents 1ddf570 + 6d45b0a commit b67bed9
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 b67bed9

Please sign in to comment.