Merge pull request #25886 from luizcarlos1405/master

Fix AnimationPlayer bug where it wouldn't reset its position when finished
This commit is contained in:
Rémi Verschelde 2019-02-15 09:09:23 +01:00 committed by GitHub
commit 97aa66597d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -938,6 +938,7 @@ void AnimationPlayer::_animation_process(float p_delta) {
} else {
//stop();
playing = false;
playback.current.pos = 0;
_set_process(false);
if (end_notify)
emit_signal(SceneStringNames::get_singleton()->animation_finished, playback.assigned);