Fix T80397: Select Side not working correctly

Test for side on which strip is was incorrect.
This commit is contained in:
Richard Antalik 2020-10-05 02:29:47 +02:00
parent d12ff69320
commit c514357358
Notes: blender-bot 2023-02-14 00:09:06 +01:00
Referenced by issue #80397, VSE: Select Side of Frame Includes Ended Strip on Other Side
1 changed files with 2 additions and 2 deletions

View File

@ -979,10 +979,10 @@ static int sequencer_select_side_of_frame_exec(bContext *C, wmOperator *op)
bool test = false;
switch (side) {
case -1:
test = (cfra >= seq->startdisp);
test = (cfra >= seq->enddisp);
break;
case 1:
test = (cfra <= seq->enddisp);
test = (cfra <= seq->startdisp);
break;
case 0:
test = (cfra <= seq->enddisp) && (cfra >= seq->startdisp);