Merge pull request #54456 from rafallus/fix/anim_state_machine_start

Fix AnimationTree state machine start()
This commit is contained in:
Rémi Verschelde 2022-08-26 07:47:11 +02:00 committed by GitHub
commit 0123752dc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}