From 5ec4f14a245b66b3e268f3c6cbb68a85336c7ca6 Mon Sep 17 00:00:00 2001 From: Luiz Date: Thu, 14 Feb 2019 15:32:29 -0300 Subject: [PATCH] Fix AnimationPlayer bug where it wouldn't reset its position when finished --- scene/animation/animation_player.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp index 86fd1ef14c0..992eb365ed3 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -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);