Fix #148121: Thumbnails are refreshed when adding keyframes to strip

When strip property was animated, all caches were wiped. However, it is
not necessary to wipe raw cache or thumbnail cache.

Pull Request: https://projects.blender.org/blender/blender/pulls/148162
This commit is contained in:
Richard Antalik
2025-10-15 21:46:30 +02:00
committed by Richard Antalik
parent a0de2e2f5d
commit 8a0622ac68
3 changed files with 15 additions and 1 deletions

View File

@@ -325,7 +325,8 @@ static void update_sequencer(const DEGEditorUpdateContext *update_ctx, Main *bma
&changed_scene->adt->action->id == id)
{
blender::seq::prefetch_stop(changed_scene);
blender::seq::cache_cleanup(changed_scene);
blender::seq::cache_cleanup_intra(changed_scene);
blender::seq::cache_cleanup_final(changed_scene);
}
}

View File

@@ -75,6 +75,9 @@ void relations_check_uids_unique_and_report(const Scene *scene);
void relations_session_uid_generate(Strip *strip);
void cache_cleanup(Scene *scene);
void cache_cleanup_intra(Scene *scene);
void cache_cleanup_final(Scene *scene);
void cache_settings_changed(Scene *scene);
bool is_cache_full(const Scene *scene);
bool evict_caches_if_full(Scene *scene);

View File

@@ -55,6 +55,16 @@ void cache_cleanup(Scene *scene)
preview_cache_invalidate(scene);
}
void cache_cleanup_intra(Scene *scene)
{
intra_frame_cache_invalidate(scene);
}
void cache_cleanup_final(Scene *scene)
{
final_image_cache_clear(scene);
}
void cache_settings_changed(Scene *scene)
{
if (!(scene->ed->cache_flag & SEQ_CACHE_STORE_RAW)) {