diff --git a/butils.py b/butils.py index f847400..7b3fb1e 100644 --- a/butils.py +++ b/butils.py @@ -510,7 +510,7 @@ def set_text_on_curve(text_properties): regenerate = False glyph_objects = [] - for g in text_properties.glyphs: + for i, g in enumerate(text_properties.glyphs): glyph_objects.append(g.glyph_object) # check if perhaps one glyph was deleted @@ -518,6 +518,8 @@ def set_text_on_curve(text_properties): or type(g.glyph_object.parent) == type(None) or g.glyph_object.parent.users_collection != g.glyph_object.users_collection): regenerate = True + if len(text_properties.text) > i and g.glyph_id != text_properties.text[i]: + regenerate = True if len(text_properties.text) != len(text_properties.glyphs): regenerate = True