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
10
butils.py
10
butils.py
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue