diff options
author | Richard Antalik <richardantalik@gmail.com> | 2019-04-29 00:13:41 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2019-04-29 00:50:48 +0300 |
commit | 337cac760ba9d198fc45459f4274a94a87558528 (patch) | |
tree | d9f1c3cb901547ef4434c38c2a390795d0fff8f1 /source/blender/makesrna/intern/rna_color.c | |
parent | 1b65ec0a9b9be2aef7db88be3c6deaaa135ab382 (diff) |
VSE: Cache rewrite
This patch implements new cache system.
Aim is to give user more control over cache, so it can be maximally
utilized. This is done through sequencer timeline side panel
in category proxy & cache.
Cached images are also visualized in timeline, controled by
sequencer timeline view->cache menu
Functional changes:
- NOT use IMB_moviecache API
- refactor names of cached image types
- each scene owns 1 sequencer cache
- merge preprocess cache into per-sequencer cache
- cache links images rendered per frame in order as they are created
- add cache content visualization tool
- add RNA properties to control the cache
More info can be found in design notes in blenkernel/intern/seqcache.c
and in https://developer.blender.org/D4443
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D4443
Diffstat (limited to 'source/blender/makesrna/intern/rna_color.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_color.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/source/blender/makesrna/intern/rna_color.c b/source/blender/makesrna/intern/rna_color.c index 934847fed50..40ee069657c 100644 --- a/source/blender/makesrna/intern/rna_color.c +++ b/source/blender/makesrna/intern/rna_color.c @@ -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)) |