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>2020-06-18 05:26:41 +0300
committerRichard Antalik <richardantalik@gmail.com>2020-06-18 06:53:25 +0300
commitac16d56aa8548f53436e8eaa87c1df32b1708c14 (patch)
tree806996d7758cb2d67fcc792a9402279b46d4d01b
parentd8206602feed27088b0b07bfb567f67754ad0359 (diff)
Fix T66390: Update missing when snaping strips.
Effect strips bound recalculation was mixed with overlap handling, which caused, that effects wasn't handled. In some cases there may be problem with order of strips in seqbase. We should traverse hierarchy instead. This is design issue that applies to all operators, and should be fixed separately. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7880
-rw-r--r--source/blender/editors/space_sequencer/sequencer_edit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source/blender/editors/space_sequencer/sequencer_edit.c b/source/blender/editors/space_sequencer/sequencer_edit.c
index 9311cbed265..4a8bea11b41 100644
--- a/source/blender/editors/space_sequencer/sequencer_edit.c
+++ b/source/blender/editors/space_sequencer/sequencer_edit.c
@@ -1403,7 +1403,11 @@ static int sequencer_snap_exec(bContext *C, wmOperator *op)
BKE_sequence_base_shuffle(ed->seqbasep, seq, scene);
}
}
- else if (seq->type & SEQ_TYPE_EFFECT) {
+ }
+
+ /* Recalculate bounds of effect strips. */
+ for (seq = ed->seqbasep->first; seq; seq = seq->next) {
+ if (seq->type & SEQ_TYPE_EFFECT) {
if (seq->seq1 && (seq->seq1->flag & SELECT)) {
BKE_sequence_calc(scene, seq);
}