|
@@ -1337,7 +1337,6 @@ float AnimationPlayer::get_current_animation_length() const {
|
|
|
|
|
|
void AnimationPlayer::_animation_changed() {
|
|
void AnimationPlayer::_animation_changed() {
|
|
clear_caches();
|
|
clear_caches();
|
|
- emit_signal("caches_cleared");
|
|
|
|
if (is_playing()) {
|
|
if (is_playing()) {
|
|
playback.seeked = true; //need to restart stuff, like audio
|
|
playback.seeked = true; //need to restart stuff, like audio
|
|
}
|
|
}
|
|
@@ -1376,6 +1375,8 @@ void AnimationPlayer::clear_caches() {
|
|
cache_update_size = 0;
|
|
cache_update_size = 0;
|
|
cache_update_prop_size = 0;
|
|
cache_update_prop_size = 0;
|
|
cache_update_bezier_size = 0;
|
|
cache_update_bezier_size = 0;
|
|
|
|
+
|
|
|
|
+ emit_signal("caches_cleared");
|
|
}
|
|
}
|
|
|
|
|
|
void AnimationPlayer::set_active(bool p_active) {
|
|
void AnimationPlayer::set_active(bool p_active) {
|