From 0a9c8a9f36dbcba2e416b7ab29c949b70bd72c0e Mon Sep 17 00:00:00 2001 From: Josh Grams Date: Thu, 31 Mar 2016 12:12:05 -0400 Subject: AnimationTreePlayer (_process_node:TIMESEEK): allow auto-advance with 0 xfade. --- scene/animation/animation_tree_player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scene/animation/animation_tree_player.cpp b/scene/animation/animation_tree_player.cpp index 1a3fbe3ef1..d36960c963 100644 --- a/scene/animation/animation_tree_player.cpp +++ b/scene/animation/animation_tree_player.cpp @@ -674,7 +674,7 @@ float AnimationTreePlayer::_process_node(const StringName& p_node,AnimationNode else tn->time+=p_time; - if (tn->input_data[tn->current].auto_advance && rem < tn->xfade) { + if (tn->input_data[tn->current].auto_advance && rem <= tn->xfade) { tn->prev=tn->current; tn->current++; -- cgit v1.2.3