From 4b7afbbb804427a21511a0b22a5f599cc1d027ce Mon Sep 17 00:00:00 2001 From: Dominik Winkelbauer Date: Mon, 29 Jan 2024 18:28:56 +0100 Subject: [PATCH] fix(init): Fixes cleanup of scene properties --- blenderproc/python/utility/Initializer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blenderproc/python/utility/Initializer.py b/blenderproc/python/utility/Initializer.py index 8e46f505f..544a3eba9 100644 --- a/blenderproc/python/utility/Initializer.py +++ b/blenderproc/python/utility/Initializer.py @@ -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]