diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-12 18:59:36 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2012-06-12 18:59:36 +0400 |
commit | 1719b86f74a757998c6edc8ffc578a14c724d1ff (patch) | |
tree | b9cbbea43623f98d6edcb683953875f5a54a10cc /source/blender/editors/space_clip/clip_dopesheet_draw.c | |
parent | 8489e100dc2ba50f4475469b190047a9b99cb6bc (diff) |
Tracking dopesheet's scrollbat now updates to channels number nicely.
Diffstat (limited to 'source/blender/editors/space_clip/clip_dopesheet_draw.c')
-rw-r--r-- | source/blender/editors/space_clip/clip_dopesheet_draw.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |