diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2022-08-26 07:47:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-26 07:47:11 +0200 |
commit | 0123752dc49093f06d8bf4b241b5b62e68114f9a (patch) | |
tree | 6100793a813b8023163206c45b59fd333ba234b8 /scene/animation | |
parent | 1b8f2e20bfd4d4a5f9cac5eb4e7fe350a82761df (diff) | |
parent | 5c1c1be32ff7c8f169c08652c13016364c417709 (diff) |
Merge pull request #54456 from rafallus/fix/anim_state_machine_start
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 4b3d7fd0a6..afb52de307 100644 --- a/scene/animation/animation_node_state_machine.cpp +++ b/scene/animation/animation_node_state_machine.cpp @@ -403,7 +403,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; } |