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
This commit is contained in:
Richard Antalik 2020-04-12 22:20:42 +02:00
parent 77ca5ab6b0
commit 5cabf1301a
Notes: blender-bot 2023-02-14 05:04:52 +01:00
Referenced by issue #75382, VSE Strip Adjustments Not Immediately Visible
1 changed files with 10 additions and 2 deletions

View File

@ -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) {