mirror of
https://github.com/tiennm99/godot.git
synced 2026-08-09 12:24:06 +00:00
Allow AnimationNodes to restart when transitioning to the same state
This commit is contained in:
@@ -236,7 +236,7 @@ bool AnimationNodeStateMachinePlayback::_travel(AnimationNodeStateMachine *p_sta
|
||||
path.clear(); //a new one will be needed
|
||||
|
||||
if (current == p_travel) {
|
||||
return true; //nothing to do
|
||||
return false; // Will teleport oneself (restart).
|
||||
}
|
||||
|
||||
Vector2 current_pos = p_state_machine->states[current].position;
|
||||
|
||||
Reference in New Issue
Block a user