better handling of not found glyph
This commit is contained in:
themancalledjakob 2024-08-07 11:51:16 +02:00
parent 3feef9f5ab
commit 172c92d88e

View file

@ -565,13 +565,13 @@ def set_text_on_curve(text_properties):
text_properties.font_face, text_properties.font_face,
glyph_id) glyph_id)
if glyph == None:
# self.report({'ERROR'}, f"Glyph not found for {font_name} {font_face} {glyph_id}")
print(f"Glyph not found for {text_properties.font_name} {text_properties.font_face} {glyph_id}")
continue
ob = None ob = None
if regenerate: if regenerate:
if glyph == None:
# self.report({'ERROR'}, f"Glyph not found for {font_name} {font_face} {glyph_id}")
print(f"Glyph not found for {font_name} {font_face} {glyph_id}")
continue
ob = bpy.data.objects.new(f"{glyph_id}", glyph.data) ob = bpy.data.objects.new(f"{glyph_id}", glyph.data)
ob['linked_textobject'] = text_properties.text_id ob['linked_textobject'] = text_properties.text_id
else: else: