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-08-08 20:46:43 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-08-08 20:46:43 +0400
commite4b494ac3badcd347dcc50db1e9368ec4acfb61a (patch)
tree5b96872b4075cc1625da9e5570d12e44b5741c2b /source/blender/blenkernel/intern/sequencer.c
parentaf81d7a4f1c17e673be09e99dc9123f1412c6340 (diff)
Sequencer: do not invalidate sequences which are not blending with bottom machines
Diffstat (limited to 'source/blender/blenkernel/intern/sequencer.c')
-rw-r--r--source/blender/blenkernel/intern/sequencer.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c
index 30d37629e31..0fc26a89d3d 100644
--- a/source/blender/blenkernel/intern/sequencer.c
+++ b/source/blender/blenkernel/intern/sequencer.c
@@ -2728,6 +2728,13 @@ void BKE_sequence_invalidate_cache(Scene *scene, Sequence *seq)
if (cur->machine < seq->machine)
continue;
+ /* sequence is not blending with lower machines, no need to invalidate */
+ if ((cur->blend_mode == SEQ_BLEND_REPLACE) ||
+ (cur->blend_mode == SEQ_TYPE_CROSS && cur->blend_opacity == 100.0f))
+ {
+ continue;
+ }
+
BKE_sequencer_cache_cleanup_sequence(cur);
}
SEQ_END