From fe7e51db4c341f9510351e9b3942430f6d44edf2 Mon Sep 17 00:00:00 2001 From: yum Date: Sun, 6 Nov 2022 19:10:45 -0800 Subject: Fix set_noop_anim fileID check intended to avoid overwriting blendtree animations was too broad and excluded regular unassigned animations. This was causing an issue where the display would flicker or fail to show any new text at all. --- libunity.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libunity.py b/libunity.py index 5ff23cd..4e5c591 100644 --- a/libunity.py +++ b/libunity.py @@ -912,7 +912,8 @@ class UnityAnimator(): motion = node.mapping['AnimatorState'].mapping['m_Motion'] replace = False - if "fileID" in motion.mapping.keys(): + if "fileID" in motion.mapping.keys() and \ + motion.mapping["fileID"] != "0": continue if "guid" in motion.mapping.keys() and \ -- cgit v1.2.3