Fix AnimationPlayer bug where it wouldn't reset its position when finished
This commit is contained in:
parent
89eb79aef1
commit
5ec4f14a24
1 changed files with 1 additions and 0 deletions
|
@ -938,6 +938,7 @@ void AnimationPlayer::_animation_process(float p_delta) {
|
||||||
} else {
|
} else {
|
||||||
//stop();
|
//stop();
|
||||||
playing = false;
|
playing = false;
|
||||||
|
playback.current.pos = 0;
|
||||||
_set_process(false);
|
_set_process(false);
|
||||||
if (end_notify)
|
if (end_notify)
|
||||||
emit_signal(SceneStringNames::get_singleton()->animation_finished, playback.assigned);
|
emit_signal(SceneStringNames::get_singleton()->animation_finished, playback.assigned);
|
||||||
|
|
Loading…
Reference in a new issue