VSE: Cache rewrite
[blender.git] / source / blender / makesrna / intern / rna_color.c
index 934847fed5014802e68ba89546fda6b5b531cfdf..40ee069657c5ccfa8d4c83cb6075edaef805b0dc 100644 (file)
@@ -577,10 +577,6 @@ static void rna_ColorManagedColorspaceSettings_reload_update(Main *bmain,
 
     BKE_movieclip_reload(bmain, clip);
 
-    /* all sequencers for now, we don't know which scenes are using this clip as a strip */
-    BKE_sequencer_cache_cleanup();
-    BKE_sequencer_preprocessed_cache_cleanup();
-
     WM_main_add_notifier(NC_MOVIECLIP | ND_DISPLAY, &clip->id);
     WM_main_add_notifier(NC_MOVIECLIP | NA_EDITED, &clip->id);
   }
@@ -612,21 +608,19 @@ static void rna_ColorManagedColorspaceSettings_reload_update(Main *bmain,
         }
 
         BKE_sequence_invalidate_cache(scene, seq);
-        BKE_sequencer_preprocessed_cache_cleanup_sequence(seq);
       }
       else {
         SEQ_BEGIN (scene->ed, seq) {
           BKE_sequence_free_anim(seq);
         }
         SEQ_END;
-
-        BKE_sequencer_cache_cleanup();
-        BKE_sequencer_preprocessed_cache_cleanup();
       }
 
       WM_main_add_notifier(NC_SCENE | ND_SEQUENCER, NULL);
     }
   }
+
+  BKE_sequencer_cache_cleanup_all(bmain);
 }
 
 static char *rna_ColorManagedSequencerColorspaceSettings_path(PointerRNA *UNUSED(ptr))