From 99f068e4fe60e940d37e9361df635560885a9eb0 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Thu, 8 Aug 2024 11:32:23 +0200 Subject: [PATCH] save fontfile metrics remove metrics faces after saving --- __init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/__init__.py b/__init__.py index a51d8fd..7379c5a 100644 --- a/__init__.py +++ b/__init__.py @@ -726,6 +726,12 @@ class FONT3D_OT_SaveFontToFile(bpy.types.Operator): bpy.ops.scene.delete() # restore() + for obj in fontcollection.objects: + if obj["font_name"] == selected_font.font_name: + if butils.is_metrics_object(obj): + butils.remove_faces_from_metrics(obj) + self.report({'INFO'}, f"did it") + return {'FINISHED'} # keep = ['io_anim_bvh', 'io_curve_svg', 'io_mesh_stl', 'io_mesh_uv_layout', 'io_scene_fbx', 'io_scene_gltf2', 'io_scene_x3d', 'cycles', 'pose_library', 'font3d'] # for addon in keep: