diff options
author | Richard Antalik <richardantalik@gmail.com> | 2020-04-12 23:20:42 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2020-04-12 23:24:20 +0300 |
commit | 5cabf1301a50906bdda391255696e8a85b6b555b (patch) | |
tree | ea0333a788c90a6a12cf12c71343865c25f5af01 /source/blender | |
parent | 77ca5ab6b02bbccc97d13c50d4174afe9471725a (diff) |
Fix T75382: VSE Strip Adjustments Not Immediately Visible
Cache of effects wasn't invalidated on correct level.
Add invalidation "rule" for invalidating downstream effects.
Reviewed By: brecht
Differential Revision: https://developer.blender.org/D7343
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/blenkernel/intern/sequencer.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/sequencer.c b/source/blender/blenkernel/intern/sequencer.c index 7d4e5e582c6..7f89b946948 100644 --- a/source/blender/blenkernel/intern/sequencer.c +++ b/source/blender/blenkernel/intern/sequencer.c @@ -4166,8 +4166,16 @@ static void sequence_do_invalidate_dependent(Scene *scene, Sequence *seq, ListBa } if (BKE_sequence_check_depend(seq, cur)) { - BKE_sequencer_cache_cleanup_sequence( - scene, cur, seq, SEQ_CACHE_STORE_COMPOSITE | SEQ_CACHE_STORE_FINAL_OUT); + /* Effect must be invalidated completely if they depend on invalidated seq. */ + if ((cur->type & SEQ_TYPE_EFFECT) != 0) { + BKE_sequencer_cache_cleanup_sequence( + scene, cur, seq, SEQ_CACHE_ALL_TYPES); + } + else { + /* In case of alpha over for example only invalidate composite image */ + BKE_sequencer_cache_cleanup_sequence( + scene, cur, seq, SEQ_CACHE_STORE_COMPOSITE | SEQ_CACHE_STORE_FINAL_OUT); + } } if (cur->seqbase.first) { |