AnimationTreePlayer (_process_node): more robust oneshot termination condition.

This commit is contained in:
Josh Grams 2016-04-06 15:06:42 -04:00
parent 0a9c8a9f36
commit 5d6b58fea6

View File

@ -571,8 +571,8 @@ float AnimationTreePlayer::_process_node(const StringName& p_node,AnimationNode
if (!p_seek) {
osn->time+=p_time;
osn->remaining-=p_time;
if (osn->remaining<0)
osn->remaining=os_rem;
if (osn->remaining<=0)
osn->active=false;
}