diff options
author | Richard Antalik <richardantalik@gmail.com> | 2019-06-07 00:44:12 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2019-06-07 02:23:39 +0300 |
commit | 9c0060572928d75faf999f148fc49570bee765e7 (patch) | |
tree | bd06bb375e75069e95c1ed988747f3746e1926b3 /source/blender/editors/space_sequencer/sequencer_edit.c | |
parent | 2175fb02170401355697dec36bed9be6a72c5570 (diff) |
VSE: Cache invalidation
Add invalidation to strip add functions
Add invalidation for scene and movieclip strips
Skip invalidation for sound strips
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D4989
Diffstat (limited to 'source/blender/editors/space_sequencer/sequencer_edit.c')
-rw-r--r-- | source/blender/editors/space_sequencer/sequencer_edit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c index 038ab0cc7cd..d7a07a3e868 100644 --- a/source/blender/editors/space_sequencer/sequencer_edit.c +++ b/source/blender/editors/space_sequencer/sequencer_edit.c @@ -2673,7 +2673,7 @@ static int sequencer_meta_make_exec(bContext *C, wmOperator *op) while (seq) { next = seq->next; if (seq != seqm && (seq->flag & SELECT)) { - BKE_sequence_invalidate_dependent(scene, seq); + BKE_sequence_invalidate_cache_composite(scene, seq); channel_max = max_ii(seq->machine, channel_max); BLI_remlink(ed->seqbasep, seq); BLI_addtail(&seqm->seqbase, seq); @@ -2692,7 +2692,7 @@ static int sequencer_meta_make_exec(bContext *C, wmOperator *op) DEG_id_tag_update(&scene->id, ID_RECALC_SEQUENCER_STRIPS); BKE_sequence_base_unique_name_recursive(&scene->ed->seqbase, seqm); - + BKE_sequence_invalidate_cache_composite(scene, seq); WM_event_add_notifier(C, NC_SCENE | ND_SEQUENCER, scene); return OPERATOR_FINISHED; @@ -2745,7 +2745,7 @@ static int sequencer_meta_separate_exec(bContext *C, wmOperator *UNUSED(op)) } for (seq = last_seq->seqbase.first; seq != NULL; seq = seq->next) { - BKE_sequence_invalidate_dependent(scene, seq); + BKE_sequence_invalidate_cache_composite(scene, seq); } BLI_movelisttolist(ed->seqbasep, &last_seq->seqbase); |