Skip to content

Commit ce53a2b

Browse files
authored
Merge pull request #1115 from DLR-RM/iss_1114_scene_cleanup
fix(cleanup): Fixes scene custom prop removal
2 parents 348238f + c9dcf67 commit ce53a2b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

blenderproc/python/utility/Initializer.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -163,4 +163,6 @@ def remove_all_data(remove_camera: bool = True):
163163
def remove_custom_properties():
164164
""" Remove all custom properties registered at global entities like the scene. """
165165
for key in list(bpy.context.scene.keys()):
166-
del bpy.context.scene[key]
166+
# Do not remove blender's internal property "cycles"
167+
if key not in ["cycles"]:
168+
del bpy.context.scene[key]

0 commit comments

Comments
 (0)