Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_select.c
| Show First 20 Lines • Show All 1,286 Lines • ▼ Show 20 Lines | |||||
| } | } | ||||
| static bool select_grouped_time_overlap(Editing *ed, Sequence *actseq) | static bool select_grouped_time_overlap(Editing *ed, Sequence *actseq) | ||||
| { | { | ||||
| Sequence *seq; | Sequence *seq; | ||||
| bool changed = false; | bool changed = false; | ||||
| SEQP_BEGIN (ed, seq) { | SEQP_BEGIN (ed, seq) { | ||||
| if (!((seq->startdisp >= actseq->enddisp) || (seq->enddisp < actseq->startdisp))) { | if (!((seq->startdisp >= actseq->enddisp) || (seq->enddisp <= actseq->startdisp))) { | ||||
sybren: Can we apply some of DeMorgan's laws here to clean this up?
```
if (seq->startdisp <… | |||||
| seq->flag |= SELECT; | seq->flag |= SELECT; | ||||
| changed = true; | changed = true; | ||||
| } | } | ||||
| } | } | ||||
| SEQ_END; | SEQ_END; | ||||
| return changed; | return changed; | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines | |||||
Can we apply some of DeMorgan's laws here to clean this up?
if (seq->startdisp < actseq->enddisp && seq->enddisp > actseq->startdisp) {