diff options
author | rafallus <rafaelmtzg@gmail.com> | 2021-10-30 22:29:00 -0500 |
---|---|---|
committer | rafallus <rafaelmtzg@gmail.com> | 2021-10-30 23:20:38 -0500 |
commit | 5c1c1be32ff7c8f169c08652c13016364c417709 (patch) | |
tree | b1463972a9fbd898ffb99b6818f09b3dc5bb15fe /scene/animation | |
parent | 727c51f35d29e36d199aedafb7b2c683a55bf44d (diff) |
Fix AnimationTree state machine start()
Diffstat (limited to 'scene/animation')
-rw-r--r-- | scene/animation/animation_node_state_machine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/animation/animation_node_state_machine.cpp b/scene/animation/animation_node_state_machine.cpp index 81ecb50ea0..7b858b5276 100644 --- a/scene/animation/animation_node_state_machine.cpp +++ b/scene/animation/animation_node_state_machine.cpp @@ -346,7 +346,7 @@ double AnimationNodeStateMachinePlayback::process(AnimationNodeStateMachine *p_s bool do_start = (p_seek && p_time == 0) || play_start || current == StringName(); if (do_start) { - if (p_state_machine->start_node != StringName() && p_seek && p_time == 0) { + if (p_state_machine->start_node != StringName() && p_seek && p_time == 0 && current == StringName()) { current = p_state_machine->start_node; } |