font loading

filter metrics
This commit is contained in:
themancalledjakob 2024-08-08 11:30:39 +02:00
parent 0c0d8d0a7f
commit f3e58b2dab

View file

@ -693,8 +693,10 @@ class FONT3D_OT_SaveFontToFile(bpy.types.Operator):
export_objects = [] export_objects = []
for obj in fontcollection.objects: for obj in fontcollection.objects:
if obj["font_name"] == selected_font.font_name: if obj["font_name"] == selected_font.font_name:
obj.select_set(True) if not butils.is_metrics_object(obj):
export_objects.append(obj) # butils.add_faces_to_metrics(obj)
obj.select_set(True)
export_objects.append(obj)
context_override = bpy.context.copy() context_override = bpy.context.copy()
context_override["selected_objects"] = list(export_objects) context_override["selected_objects"] = list(export_objects)