Merge pull request #82563 from TokageItLab/fix-reset-group

Fix GroupedStateMachine reset
This commit is contained in:
Rémi Verschelde 2023-09-30 11:04:19 +02:00
commit 0ca8542329
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

@ -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) { if (p_state_machine->get_state_machine_type() != AnimationNodeStateMachine::STATE_MACHINE_TYPE_GROUPED) {
path.clear(); path.clear();
_clear_path_children(tree, p_state_machine, p_test_only); _clear_path_children(tree, p_state_machine, p_test_only);
_start(p_state_machine);
} }
reset_request = true; reset_request = true;
_start(p_state_machine);
} else { } else {
// Reset current state. // Reset current state.
reset_request = true; reset_request = true;