first step spline animation

This commit is contained in:
jrkb 2025-06-04 21:28:08 +02:00
parent 7de8fcc5d1
commit 58e0df3427
2 changed files with 152 additions and 4 deletions

View file

@ -2040,13 +2040,27 @@ def on_depsgraph_update(scene, depsgraph):
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()