Fix #33674: Meta strip could overlap with other strips when exiting edit mode

Not sure what's the best thing to do here, for now just added vertical shuffle
of meta strip if it overlaps with other strips when existing edit mode.
This commit is contained in:
2013-01-05 08:03:16 +00:00
parent 93a6872a25
commit 0d678e71a8

View File

@@ -1906,6 +1906,9 @@ static int sequencer_meta_toggle_exec(bContext *C, wmOperator *UNUSED(op))
for (seq = ed->seqbasep->first; seq; seq = seq->next)
BKE_sequence_calc(scene, seq);
if (BKE_sequence_test_overlap(ed->seqbasep, ms->parseq))
BKE_sequence_base_shuffle(ed->seqbasep, ms->parseq, scene);
BKE_sequencer_active_set(scene, ms->parseq);
ms->parseq->flag |= SELECT;