summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-11-19 13:14:37 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-11-19 13:14:37 -0300
commit0ab71689aea4243e1131a29cd58b97f6c6fd3ed7 (patch)
tree6e7a98ec8e0c254b379562d8b3dd8bede9bc9ffe
parent634aa4fc24dcc2ca5ebb284a0deb4664d6f1266b (diff)
Reseek if cachees were cleared in animation player, fixes #19424
-rw-r--r--scene/animation/animation_player.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/animation/animation_player.cpp b/scene/animation/animation_player.cpp
index 102f05a146..64202ba0e3 100644
--- a/scene/animation/animation_player.cpp
+++ b/scene/animation/animation_player.cpp
@@ -1348,6 +1348,9 @@ void AnimationPlayer::_animation_changed() {
clear_caches();
emit_signal("caches_cleared");
+ if (is_playing()) {
+ playback.seeked = true; //need to restart stuff, like audio
+ }
}
void AnimationPlayer::_stop_playing_caches() {