bugfix regeneration

regenerate when letters are different
This commit is contained in:
themancalledjakob 2024-08-07 11:52:09 +02:00
parent 172c92d88e
commit f194c4cd24

View file

@ -510,7 +510,7 @@ def set_text_on_curve(text_properties):
regenerate = False regenerate = False
glyph_objects = [] glyph_objects = []
for g in text_properties.glyphs: for i, g in enumerate(text_properties.glyphs):
glyph_objects.append(g.glyph_object) glyph_objects.append(g.glyph_object)
# check if perhaps one glyph was deleted # 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 type(g.glyph_object.parent) == type(None)
or g.glyph_object.parent.users_collection != g.glyph_object.users_collection): or g.glyph_object.parent.users_collection != g.glyph_object.users_collection):
regenerate = True 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): if len(text_properties.text) != len(text_properties.glyphs):
regenerate = True regenerate = True