From 1719b86f74a757998c6edc8ffc578a14c724d1ff Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Tue, 12 Jun 2012 14:59:36 +0000 Subject: Tracking dopesheet's scrollbat now updates to channels number nicely. --- source/blender/editors/space_clip/clip_dopesheet_draw.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/editors/space_clip/clip_dopesheet_draw.c') diff --git a/source/blender/editors/space_clip/clip_dopesheet_draw.c b/source/blender/editors/space_clip/clip_dopesheet_draw.c index e9ea70cafea..2ce0e13b8bd 100644 --- a/source/blender/editors/space_clip/clip_dopesheet_draw.c +++ b/source/blender/editors/space_clip/clip_dopesheet_draw.c @@ -158,6 +158,12 @@ void clip_draw_dopesheet_main(SpaceClip *sc, ARegion *ar, Scene *scene) MovieTrackingDopesheetChannel *channel; float y, xscale, yscale; float strip[4], selected_strip[4]; + float height = (dopesheet->tot_channel * CHANNEL_STEP) + (CHANNEL_HEIGHT * 2); + + /* don't use totrect set, as the width stays the same + * (NOTE: this is ok here, the configuration is pretty straightforward) + */ + v2d->tot.ymin = (float)(-height); y = (float) CHANNEL_FIRST; -- cgit v1.2.3