Fix off by one error in display of start/end frame in sequencer.

This commit is contained in:
Antonis Ryakiotakis 2015-05-27 12:16:42 +02:00
parent 4c1efcc829
commit 0e02ad8b64
Notes: blender-bot 2023-04-03 10:14:29 +02:00
Referenced by commit 2cdcb1c171, Revert "Fix off by one error in display of start/end frame in sequencer."
Referenced by issue #106480, VSE range drawing off by one for endframe, Set Frame Range to Strips off by one for endframe
1 changed files with 2 additions and 2 deletions

View File

@ -1521,7 +1521,7 @@ static void seq_draw_sfra_efra(Scene *scene, View2D *v2d)
{
const Editing *ed = BKE_sequencer_editing_get(scene, false);
const int frame_sta = PSFRA;
const int frame_end = PEFRA + 1;
const int frame_end = PEFRA;
glEnable(GL_BLEND);
@ -1529,7 +1529,7 @@ static void seq_draw_sfra_efra(Scene *scene, View2D *v2d)
* frame range used is preview range or scene range */
UI_ThemeColorShadeAlpha(TH_BACK, -25, -100);
if (frame_sta < frame_end) {
if (frame_sta < frame_end + 1) {
glRectf(v2d->cur.xmin, v2d->cur.ymin, (float)frame_sta, v2d->cur.ymax);
glRectf((float)frame_end, v2d->cur.ymin, v2d->cur.xmax, v2d->cur.ymax);
}