Sequencer: Fix box select using incorrect rectangles for sequences

Reviewer: ISS

Differential Revision: https://developer.blender.org/D4968
This commit is contained in:
Jacques Lucke 2019-05-29 11:19:48 +02:00
parent 2f7711962a
commit f8f43184e2
1 changed files with 5 additions and 16 deletions

View File

@ -231,23 +231,12 @@ static void seq_proxy_build_job(const bContext *C)
/* ********************************************************************** */
void seq_rectf(Sequence *seq, rctf *rectf)
void seq_rectf(Sequence *seq, rctf *rect)
{
if (seq->startstill) {
rectf->xmin = seq->start;
}
else {
rectf->xmin = seq->startdisp;
}
rectf->ymin = seq->machine + SEQ_STRIP_OFSBOTTOM;
if (seq->endstill) {
rectf->xmax = seq->start + seq->len;
}
else {
rectf->xmax = seq->enddisp;
}
rectf->ymax = seq->machine + SEQ_STRIP_OFSTOP;
rect->xmin = seq->startdisp;
rect->xmax = seq->enddisp;
rect->ymin = seq->machine + SEQ_STRIP_OFSBOTTOM;
rect->ymax = seq->machine + SEQ_STRIP_OFSTOP;
}
void boundbox_seq(Scene *scene, rctf *rect)