Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-11-07 14:18:11 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-11-07 14:18:11 +0400
commit53ede28fcbf8a8cc9b33226ddbf2fd88389ba4a7 (patch)
tree1ecd563219e6192f8514cf38c3b33a437f9e369c
parentf727448e10de503be0d89bf8b32b7db1a8a5cac7 (diff)
Invalidate sequencer cache when movie clip's input color space is changing
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.
-rw-r--r--source/blender/makesrna/intern/rna_color.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c
index f534864e65a..5752fd318c7 100644
--- a/source/blender/makesrna/intern/rna_color.c
+++ b/source/blender/makesrna/intern/rna_color.c
@@ -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);
}