depsgraph update set text

this updates on animation
This commit is contained in:
jrkb 2025-06-05 10:57:53 +02:00
parent e95266afc9
commit f02f8fc2f0

View file

@ -2036,31 +2036,21 @@ def on_depsgraph_update(scene, depsgraph):
if text_properties is not None:
if text_properties.text_object == u.id.original:
# nothing to do
try:
butils.set_text_on_curve(text_properties)
except:
pass
pass
elif butils.is_text_object_legit(u.id.original):
# must be duplicate
link_text_object_with_new_text_properties(u.id.original, scene)
# butils.prepare_text(
# text_properties.font_name,
# text_properties.face_name,
# text_properties.text,
# )
elif (
butils.is_text_object_legit(u.id.original)
and len(u.id.original.users_collection) > 0
):
# must be a new thing, maybe manually created or so
link_text_object_with_new_text_properties(u.id.original, scene)
# butils.prepare_text(
# text_properties.font_name,
# text_properties.face_name,
# text_properties.text,
# )
butils.clean_text_properties()
try:
butils.set_text_on_curve(text_properties)
except:
pass
update_active_text_index()
unlock_depsgraph_updates()