From 540eca90994de80fddc9c7d7ffe65dc91f8cfe6d Mon Sep 17 00:00:00 2001 From: Summersay415 Date: Sun, 6 Apr 2025 19:11:39 +0700 Subject: [PATCH] Fix current_animation_changed emission on animation finish --- 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 4ba0ef3f8a..680fd5c336 100644 --- a/scene/animation/animation_player.cpp +++ b/scene/animation/animation_player.cpp @@ -345,6 +345,7 @@ void AnimationPlayer::_blend_post_process() { _set_process(false); if (end_notify) { emit_signal(SceneStringName(animation_finished), playback.assigned); + emit_signal(SNAME("current_animation_changed"), ""); if (movie_quit_on_finish && OS::get_singleton()->has_feature("movie")) { print_line(vformat("Movie Maker mode is enabled. Quitting on animation finish as requested by: %s", get_path())); get_tree()->quit();