From 0ab71689aea4243e1131a29cd58b97f6c6fd3ed7 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Mon, 19 Nov 2018 13:14:37 -0300 Subject: Reseek if cachees were cleared in animation player, fixes #19424 --- scene/animation/animation_player.cpp | 3 +++ 1 file changed, 3 insertions(+) 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() { -- cgit v1.2.3