[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [47787] trunk/blender/source/blender/ editors/space_clip/clip_dopesheet_draw.c: Tracking dopesheet' s scrollbat now updates to channels number nicely.

Sergey Sharybin sergey.vfx at gmail.com
Tue Jun 12 16:59:37 CEST 2012


Revision: 47787
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=47787
Author:   nazgul
Date:     2012-06-12 14:59:36 +0000 (Tue, 12 Jun 2012)
Log Message:
-----------
Tracking dopesheet's scrollbat now updates to channels number nicely.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/space_clip/clip_dopesheet_draw.c

Modified: trunk/blender/source/blender/editors/space_clip/clip_dopesheet_draw.c
===================================================================
--- trunk/blender/source/blender/editors/space_clip/clip_dopesheet_draw.c	2012-06-12 11:54:31 UTC (rev 47786)
+++ trunk/blender/source/blender/editors/space_clip/clip_dopesheet_draw.c	2012-06-12 14:59:36 UTC (rev 47787)
@@ -158,7 +158,13 @@
 		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;
 
 		UI_view2d_getscale(v2d, &xscale, &yscale);




More information about the Bf-blender-cvs mailing list