bugfix
better handling of not found glyph
This commit is contained in:
parent
3feef9f5ab
commit
172c92d88e
1 changed files with 5 additions and 5 deletions
|
@ -565,13 +565,13 @@ def set_text_on_curve(text_properties):
|
|||
text_properties.font_face,
|
||||
glyph_id)
|
||||
|
||||
ob = None
|
||||
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}")
|
||||
print(f"Glyph not found for {text_properties.font_name} {text_properties.font_face} {glyph_id}")
|
||||
continue
|
||||
|
||||
ob = None
|
||||
if regenerate:
|
||||
ob = bpy.data.objects.new(f"{glyph_id}", glyph.data)
|
||||
ob['linked_textobject'] = text_properties.text_id
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue