From f194c4cd243230507ac0a7f7f0eb9f7d87886248 Mon Sep 17 00:00:00 2001 From: themancalledjakob Date: Wed, 7 Aug 2024 11:52:09 +0200 Subject: [PATCH] bugfix regeneration regenerate when letters are different --- butils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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