mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 14:13:10 +00:00
AnimationTreePlayer (_process_node): more robust oneshot termination condition.
This commit is contained in:
parent
0a9c8a9f36
commit
5d6b58fea6
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user