Invalidate sequencer cache when movie clip's input color space is changing
authorSergey Sharybin <sergey.vfx@gmail.com>
Wed, 7 Nov 2012 10:18:11 +0000 (10:18 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Wed, 7 Nov 2012 10:18:11 +0000 (10:18 +0000)
Currently the only way is to invalidate the whole cache, for something
smarter we'll need a dependency graph which would be able to deal with
relations between clip and strip.

source/blender/makesrna/intern/rna_color.c

index f534864e65a28aa91f6bc8e063cbcc4cad05de07..5752fd318c701cc3fa8fc1bbd838aa071d6d14b2 100644 (file)
@@ -503,6 +503,10 @@ static void rna_ColorManagedColorspaceSettings_reload_update(Main *UNUSED(bmain)
 
                BKE_movieclip_reload(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);
        }