Reseek if cachees were cleared in animation player, fixes #19424

This commit is contained in:
Juan Linietsky 2018-11-19 13:14:37 -03:00
parent 634aa4fc24
commit 0ab71689ae
1 changed files with 3 additions and 0 deletions

View File

@ -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() {