Fix T72546: Video Sequencer: Select grouped 'OVERLAP' operator wrong

selection

False positive when a sequences end would be the same as active
sequences start.

Also thx @sybren for the heads up to make this more readable.

Maniphest Tasks: T72546

Differential Revision: https://developer.blender.org/D6451
This commit is contained in:
Philipp Oeser 2019-12-19 10:23:21 +01:00
parent 335930ab4e
commit ddddb94517
Notes: blender-bot 2023-02-13 23:54:26 +01:00
Referenced by issue #72546, Video Sequencer: Select grouped 'OVERLAP' operator wrong selection
1 changed files with 1 additions and 1 deletions

View File

@ -1292,7 +1292,7 @@ static bool select_grouped_time_overlap(Editing *ed, Sequence *actseq)
bool changed = false;
SEQP_BEGIN (ed, seq) {
if (!((seq->startdisp >= actseq->enddisp) || (seq->enddisp < actseq->startdisp))) {
if (seq->startdisp < actseq->enddisp && seq->enddisp > actseq->startdisp) {
seq->flag |= SELECT;
changed = true;
}