summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2022-11-06 19:10:45 -0800
committeryum <yum.food.vr@gmail.com>2022-11-06 19:10:45 -0800
commitfe7e51db4c341f9510351e9b3942430f6d44edf2 (patch)
treecf4cf819b5e297b38d3bdce3e67464cf0dcc16ff
parentbb69deff8d484746af56a57fbbb3592ae65749d4 (diff)
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.
-rw-r--r--libunity.py3
1 files changed, 2 insertions, 1 deletions
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 \