summaryrefslogtreecommitdiffstats
path: root/Scripts/libunity.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-08-30 17:13:19 -0700
committeryum <yum.food.vr@gmail.com>2023-08-30 17:13:19 -0700
commit358f3ed8c44bbe45d8f4546afeeb0afaae85ea8b (patch)
treebb49a94c72668aff16b104de089a3c90436e67ac /Scripts/libunity.py
parent444914a701628ca2d1937f8d5cc9a714b478917c (diff)
Continue work on in-game audio, revert steamvr.py
We now play arpeggiated *chords* of vowels instead of one, allowing for a denser audio feedback mechanism.
Diffstat (limited to 'Scripts/libunity.py')
-rw-r--r--Scripts/libunity.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/Scripts/libunity.py b/Scripts/libunity.py
index cd8174d..f79cd6f 100644
--- a/Scripts/libunity.py
+++ b/Scripts/libunity.py
@@ -745,7 +745,7 @@ class UnityAnimator():
node.class_id = "1101"
node.anchor = str(new_id)
state = node.mapping['AnimatorStateTransition']
- state.mapping['m_DstState'].mapping['fileID'] = dst_state.anchor
+ state.mapping['m_DstState'].mapping['fileID'] = copy.copy(dst_state.anchor)
state.mapping['m_TransitionDuration'] = dur_s
self.nodes.append(node)
@@ -908,7 +908,7 @@ class UnityAnimator():
# Register the transition with the `from_state`.
if from_state:
from_state_trans = from_state.mapping['AnimatorState'].mapping['m_Transitions'].addChildMapping()
- from_state_trans.mapping['fileID'] = trans.anchor
+ from_state_trans.mapping['fileID'] = copy.copy(trans.anchor)
def addTransitionIntegerEqualityCondition(self, from_state, trans, param, param_val):
# Populate the transition's condition logic.
@@ -994,7 +994,8 @@ class UnityAnimator():
motion.mapping["guid"] = noop_anim_meta.guid
motion.mapping["type"] = "2"
else:
- print(f"Skipping state {anchor} / {name}")
+ #print(f"Skipping state {anchor} / {name}")
+ pass
def unityYamlToString(nodes):
lines = []