From 96b1b1991ba91ed8d47cc8c71452256e06cf1301 Mon Sep 17 00:00:00 2001 From: Haoyu Qiu Date: Mon, 16 May 2022 21:03:22 +0800 Subject: [PATCH] Fix AnimatedSprite doesn't emit animation_finished when changing playback direction (cherry picked from commit d5f5e96e118d6904aaa071fcb8e8f08fa2d4eae5) --- scene/2d/animated_sprite.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/scene/2d/animated_sprite.cpp b/scene/2d/animated_sprite.cpp index 4891823e318..5a618f8760e 100644 --- a/scene/2d/animated_sprite.cpp +++ b/scene/2d/animated_sprite.cpp @@ -599,6 +599,7 @@ void AnimatedSprite::play(const StringName &p_animation, const bool p_backwards) } } + is_over = false; set_playing(true); }