Camera Tracking: proper display of current frame in cache line when sequence is too...
authorSergey Sharybin <sergey.vfx@gmail.com>
Mon, 5 Nov 2012 08:04:37 +0000 (08:04 +0000)
committerSergey Sharybin <sergey.vfx@gmail.com>
Mon, 5 Nov 2012 08:04:37 +0000 (08:04 +0000)
source/blender/editors/space_clip/clip_draw.c

index fc9c040852f9b106518f5f1f0d501bfc9459a24a..f8638875f917c8ce7b5c0de2c890f62531970441 100644 (file)
@@ -213,7 +213,7 @@ static void draw_movieclip_cache(SpaceClip *sc, ARegion *ar, MovieClip *clip, Sc
        x = (sc->user.framenr - sfra) / (efra - sfra + 1) * ar->winx;
 
        UI_ThemeColor(TH_CFRAME);
        x = (sc->user.framenr - sfra) / (efra - sfra + 1) * ar->winx;
 
        UI_ThemeColor(TH_CFRAME);
-       glRecti(x, 0, x + framelen, 8);
+       glRecti(x, 0, x + ceil(framelen), 8);
 
        clip_draw_curfra_label(sc->user.framenr, x, 8.0f);
 
 
        clip_draw_curfra_label(sc->user.framenr, x, 8.0f);