bugfix saving scene
do not modify list while iterating through it
This commit is contained in:
parent
f3e58b2dab
commit
27a0ebdb90
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue