bugfix saving scene

do not modify list while iterating through it
This commit is contained in:
themancalledjakob 2024-08-08 11:31:39 +02:00
parent f3e58b2dab
commit 27a0ebdb90

View file

@ -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