From 5ceff7f039c9aa479c1d5bc1c73408d047b9469b 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 9af29faba..21274c472 100644 --- a/scene/2d/animated_sprite.cpp +++ b/scene/2d/animated_sprite.cpp @@ -617,6 +617,7 @@ void AnimatedSprite::play(const StringName &p_animation, const bool p_backwards) } } + is_over = false; set_playing(true); }