Skip to content

Commit

Permalink
Merge pull request #1055 from DLR-RM/iss1054_scene_pop_cleanup
Browse files Browse the repository at this point in the history
fix(init): Fixes cleanup of scene properties
  • Loading branch information
cornerfarmer authored Jan 30, 2024
2 parents 081ce0a + 4b7afbb commit 508323a
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 508323a

Please sign in to comment.