Skip to content

Commit

Permalink
fix(init): Fixes cleanup of scene properties
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerfarmer committed Jan 29, 2024
1 parent 081ce0a commit 4b7afbb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blenderproc/python/utility/Initializer.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,5 +162,5 @@ def remove_all_data(remove_camera: bool = True):
@staticmethod
def remove_custom_properties():
""" Remove all custom properties registered at global entities like the scene. """
for key in bpy.context.scene.keys():
for key in list(bpy.context.scene.keys()):
del bpy.context.scene[key]

0 comments on commit 4b7afbb

Please sign in to comment.