Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_sequencer/sequencer_select.c
| Context not available. | |||||
| for (Sequence *seq = ed->seqbasep->first; seq; seq = seq->next) { | for (Sequence *seq = ed->seqbasep->first; seq; seq = seq->next) { | ||||
| rctf rq; | rctf rq; | ||||
| seq_rectf(seq, &rq); | seq_rectf(seq, &rq); | ||||
| int rq2 = (rq.xmax - rq.xmin) / 3 + rq.xmin; // get middle of sequence seq | |||||
| if (BLI_rctf_isect(&rq, &rectf, NULL)) { | if (BLI_rctf_isect(&rq, &rectf, NULL)) { | ||||
| SET_FLAG_FROM_TEST(seq->flag, select, SELECT); | seq->flag |= SELECT; | ||||
| if (rectf.xmin > rq2 * 2) { // Check if boxselection is in the right one-third of sequence | |||||
| seq->flag &= ~SEQ_LEFTSEL; | |||||
| seq->flag |= SEQ_RIGHTSEL; // select only right handle | |||||
| } | |||||
| else if (rectf.xmax < rq2) { // Check if boxselection is in the left one-third of sequence | |||||
| seq->flag &= ~SEQ_RIGHTSEL; | |||||
| seq->flag |= SEQ_LEFTSEL; // select only left handle | |||||
| } | |||||
| else { | |||||
| seq->flag |= SEQ_LEFTSEL | SEQ_RIGHTSEL; // select the whole sequence | |||||
| } | |||||
| recurs_sel_seq(seq); | recurs_sel_seq(seq); | ||||
| } | } | ||||
| } | } | ||||
| Context not available. | |||||