summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2022-05-16 21:03:22 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2022-05-16 21:03:22 +0800
commitd5f5e96e118d6904aaa071fcb8e8f08fa2d4eae5 (patch)
tree5ec632555e641241c3c37b971ce828a14e459326 /scene
parentd6edc6d18ad69897ed847aeaf890d9290d2edbbe (diff)
Fix AnimatedSprite doesn't emit animation_finished when changing playback direction
Diffstat (limited to 'scene')
-rw-r--r--scene/2d/animated_sprite_2d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/animated_sprite_2d.cpp b/scene/2d/animated_sprite_2d.cpp
index 4734f97e23..b33c2f43d4 100644
--- a/scene/2d/animated_sprite_2d.cpp
+++ b/scene/2d/animated_sprite_2d.cpp
@@ -388,6 +388,7 @@ void AnimatedSprite2D::play(const StringName &p_animation, const bool p_backward
}
}
+ is_over = false;
set_playing(true);
}