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:
authorRichard Antalik <richardantalik@gmail.com>2019-06-07 00:44:12 +0300
committerRichard Antalik <richardantalik@gmail.com>2019-06-07 02:23:39 +0300
commit9c0060572928d75faf999f148fc49570bee765e7 (patch)
treebd06bb375e75069e95c1ed988747f3746e1926b3 /source/blender/makesrna/intern/rna_sequencer_api.c
parent2175fb02170401355697dec36bed9be6a72c5570 (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/makesrna/intern/rna_sequencer_api.c')
-rw-r--r--source/blender/makesrna/intern/rna_sequencer_api.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_sequencer_api.c b/source/blender/makesrna/intern/rna_sequencer_api.c
index a50f01afd78..37ebb76daa5 100644
--- a/source/blender/makesrna/intern/rna_sequencer_api.c
+++ b/source/blender/makesrna/intern/rna_sequencer_api.c
@@ -133,6 +133,7 @@ static Sequence *rna_Sequences_new_mask(
id_us_plus((ID *)mask);
BKE_sequence_calc_disp(scene, seq);
+ BKE_sequence_invalidate_cache_composite(scene, seq);
WM_main_add_notifier(NC_SCENE | ND_SEQUENCER, scene);
@@ -153,6 +154,7 @@ static Sequence *rna_Sequences_new_scene(
id_us_plus((ID *)sce_seq);
BKE_sequence_calc_disp(scene, seq);
+ BKE_sequence_invalidate_cache_composite(scene, seq);
WM_main_add_notifier(NC_SCENE | ND_SEQUENCER, scene);
@@ -181,6 +183,7 @@ static Sequence *rna_Sequences_new_image(ID *id,
}
BKE_sequence_calc_disp(scene, seq);
+ BKE_sequence_invalidate_cache_composite(scene, seq);
WM_main_add_notifier(NC_SCENE | ND_SEQUENCER, scene);
@@ -216,6 +219,7 @@ static Sequence *rna_Sequences_new_movie(ID *id,
seq->len = IMB_anim_get_duration(an, IMB_TC_RECORD_RUN);
BKE_sequence_calc_disp(scene, seq);
+ BKE_sequence_invalidate_cache_composite(scene, seq);
WM_main_add_notifier(NC_SCENE | ND_SEQUENCER, scene);
@@ -340,6 +344,7 @@ static Sequence *rna_Sequences_new_effect(ID *id,
BKE_sequence_calc(scene, seq);
BKE_sequence_calc_disp(scene, seq);
+ BKE_sequence_invalidate_cache_composite(scene, seq);
WM_main_add_notifier(NC_SCENE | ND_SEQUENCER, scene);
@@ -375,7 +380,6 @@ static StripElem *rna_SequenceElements_append(ID *id, Sequence *seq, const char
seq->len++;
BKE_sequence_calc_disp(scene, seq);
-
WM_main_add_notifier(NC_SCENE | ND_SEQUENCER, scene);
return se;