Sequencer: Select sideof failed for strips touching the playhead

This commit is contained in:
Campbell Barton
2014-12-17 23:10:12 +01:00
parent 3820d44979
commit b3b9e08423

View File

@@ -357,25 +357,22 @@ static int sequencer_select_invoke(bContext *C, wmOperator *op, const wmEvent *e
case SEQ_SELECT_LR_MOUSE:
x = UI_view2d_region_to_view_x(v2d, event->mval[0]);
break;
case SEQ_SELECT_LR_LEFT:
x = CFRA - 1;
break;
case SEQ_SELECT_LR_RIGHT:
x = CFRA + 1;
x = CFRA;
break;
}
SEQP_BEGIN (ed, seq)
{
if (x < CFRA) {
if (seq->enddisp < CFRA) {
if (seq->enddisp <= CFRA) {
seq->flag |= SELECT;
recurs_sel_seq(seq);
}
}
else {
if (seq->startdisp > CFRA) {
if (seq->startdisp >= CFRA) {
seq->flag |= SELECT;
recurs_sel_seq(seq);
}