mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 12:12:28 +00:00
Fix AnimationTree state machine start()
This commit is contained in:
parent
727c51f35d
commit
5c1c1be32f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user