summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-09-30 11:04:19 +0200
committerRémi Verschelde <rverschelde@gmail.com>2023-09-30 11:04:19 +0200
commit0ca8542329888e8dccba89d59d3b728090c29991 (patch)
tree48845ff9e4f1548fad4a2387d444ef2c67fffc1e
parentb97af40ac1ef2ac6892507d9f3cfb609cd6dd896 (diff)
parent599f0dbf97c21a15c2e272d5a90b04faa40c7465 (diff)
downloadredot-engine-0ca8542329888e8dccba89d59d3b728090c29991.tar.gz
Merge pull request #82563 from TokageItLab/fix-reset-group
Fix GroupedStateMachine reset
-rw-r--r--scene/animation/animation_node_state_machine.cpp2
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 3b2da915ba..dd5ff7912f 100644
--- a/scene/animation/animation_node_state_machine.cpp
+++ b/scene/animation/animation_node_state_machine.cpp
@@ -690,9 +690,9 @@ double AnimationNodeStateMachinePlayback::_process(const String &p_base_path, An
if (p_state_machine->get_state_machine_type() != AnimationNodeStateMachine::STATE_MACHINE_TYPE_GROUPED) {
path.clear();
_clear_path_children(tree, p_state_machine, p_test_only);
+ _start(p_state_machine);
}
reset_request = true;
- _start(p_state_machine);
} else {
// Reset current state.
reset_request = true;