From 172c92d88e4c9af12779445e4608fcc34228cf85 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Wed, 7 Aug 2024 11:51:16 +0200 Subject: [PATCH] bugfix better handling of not found glyph --- butils.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/butils.py b/butils.py index 33349a5..f847400 100644 --- a/butils.py +++ b/butils.py @@ -565,13 +565,13 @@ def set_text_on_curve(text_properties): text_properties.font_face, 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 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['linked_textobject'] = text_properties.text_id else: