diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-08-08 20:46:43 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-08-08 20:46:43 +0400 |
commit | e4b494ac3badcd347dcc50db1e9368ec4acfb61a (patch) | |
tree | 5b96872b4075cc1625da9e5570d12e44b5741c2b | |
parent | af81d7a4f1c17e673be09e99dc9123f1412c6340 (diff) |
Sequencer: do not invalidate sequences which are not blending with bottom machines
-rw-r--r-- | source/blender/blenkernel/intern/sequencer.c | 7 |
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 |