save fontfile metrics
remove metrics faces after saving
This commit is contained in:
parent
e203e46cc4
commit
99f068e4fe
1 changed files with 6 additions and 0 deletions
|
@ -726,6 +726,12 @@ class FONT3D_OT_SaveFontToFile(bpy.types.Operator):
|
||||||
bpy.ops.scene.delete()
|
bpy.ops.scene.delete()
|
||||||
# restore()
|
# 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'}
|
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']
|
# 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:
|
# for addon in keep:
|
||||||
|
|
Loading…
Reference in a new issue