summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2020-04-22 10:07:29 +0200
committerGitHub <noreply@github.com>2020-04-22 10:07:29 +0200
commitf989a43135ce42a43c35193b8eecefb055aec84c (patch)
tree651e6912ed955ef7ea3c4b35ebfbd11ec238a042
parent02200e2865a8a9a7d0426b7e3938fdcd314ea228 (diff)
parentbf1cc116e15ec155c1dfff06bd02d2f1dfc21ee0 (diff)
Merge pull request #38086 from volzhs/seek-animation-finished
Emit signal when animation ends by seek
-rw-r--r--scene/animation/animation_player.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp
index b657833a3b..946f759610 100644
--- a/scene/animation/animation_player.cpp
+++ b/scene/animation/animation_player.cpp
@@ -950,13 +950,13 @@ void AnimationPlayer::_animation_process(float p_delta) {
play(queued.front()->get());
String new_name = playback.assigned;
queued.pop_front();
- if (end_notify)
+ if (end_notify || playback.seeked)
emit_signal(SceneStringNames::get_singleton()->animation_changed, old, new_name);
} else {
//stop();
playing = false;
_set_process(false);
- if (end_notify)
+ if (end_notify || playback.seeked)
emit_signal(SceneStringNames::get_singleton()->animation_finished, playback.assigned);
}
end_reached = false;