diff options
author | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-08-06 23:27:25 +0200 |
---|---|---|
committer | PouleyKetchoupp <pouleyketchoup@gmail.com> | 2019-08-06 23:27:25 +0200 |
commit | aaad50e4d9b5d9e5d7729e145d6b695ec16d2279 (patch) | |
tree | 42eec7c5a6db8e3574917bdf70e60dd3867d4799 | |
parent | 7126654eafc5a50a782bfbcdcfcb243807662eab (diff) |
Fixed AnimationTreeStateMachine transition priority (last transition was always chosen instead of least cost)
Fixes #31132
-rw-r--r-- | scene/animation/animation_node_state_machine.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/animation/animation_node_state_machine.cpp b/scene/animation/animation_node_state_machine.cpp index f1ce948c43..6e69ee61e3 100644 --- a/scene/animation/animation_node_state_machine.cpp +++ b/scene/animation/animation_node_state_machine.cpp @@ -235,6 +235,7 @@ bool AnimationNodeStateMachinePlayback::_travel(AnimationNodeStateMachine *p_sta if (cost < least_cost) { least_cost_transition = E; + least_cost = cost; } } |