depsgraph update set text
this updates on animation
This commit is contained in:
parent
e95266afc9
commit
f02f8fc2f0
1 changed files with 4 additions and 14 deletions
18
__init__.py
18
__init__.py
|
@ -2036,31 +2036,21 @@ def on_depsgraph_update(scene, depsgraph):
|
||||||
if text_properties is not None:
|
if text_properties is not None:
|
||||||
if text_properties.text_object == u.id.original:
|
if text_properties.text_object == u.id.original:
|
||||||
# nothing to do
|
# nothing to do
|
||||||
|
try:
|
||||||
|
butils.set_text_on_curve(text_properties)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
pass
|
pass
|
||||||
elif butils.is_text_object_legit(u.id.original):
|
elif butils.is_text_object_legit(u.id.original):
|
||||||
# must be duplicate
|
# must be duplicate
|
||||||
link_text_object_with_new_text_properties(u.id.original, scene)
|
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 (
|
elif (
|
||||||
butils.is_text_object_legit(u.id.original)
|
butils.is_text_object_legit(u.id.original)
|
||||||
and len(u.id.original.users_collection) > 0
|
and len(u.id.original.users_collection) > 0
|
||||||
):
|
):
|
||||||
# must be a new thing, maybe manually created or so
|
# must be a new thing, maybe manually created or so
|
||||||
link_text_object_with_new_text_properties(u.id.original, scene)
|
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()
|
butils.clean_text_properties()
|
||||||
try:
|
|
||||||
butils.set_text_on_curve(text_properties)
|
|
||||||
except:
|
|
||||||
pass
|
|
||||||
update_active_text_index()
|
update_active_text_index()
|
||||||
unlock_depsgraph_updates()
|
unlock_depsgraph_updates()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue