From 27a0ebdb90d1f282f69aaa1099c9c29111f54685 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Thu, 8 Aug 2024 11:31:39 +0200 Subject: [PATCH] bugfix saving scene do not modify list while iterating through it --- __init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/__init__.py b/__init__.py index 817ec7f..db46034 100644 --- a/__init__.py +++ b/__init__.py @@ -704,7 +704,10 @@ class FONT3D_OT_SaveFontToFile(bpy.types.Operator): with bpy.context.temp_override(**context_override): filepath = f"{preferences.assets_dir}/fonts/{selected_font.font_name}.gltf" # get rid of scene extra data before export + scene_keys = [] for k in bpy.context.scene.keys(): + scene_keys.append(k) + for k in scene_keys: del bpy.context.scene[k] # save as gltf