From 9dec5e8fa3a214da7ad406265204411aabda3c30 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 9 Feb 2009 04:47:34 +0000 Subject: DopeSheet: Bugfix for View All (HomeKey) Removing an old line of temporary code I forgot to remove --- source/blender/editors/space_action/action_edit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/blender') diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c index 858da27157d..d9b752cd30d 100644 --- a/source/blender/editors/space_action/action_edit.c +++ b/source/blender/editors/space_action/action_edit.c @@ -114,7 +114,6 @@ static void get_keyframe_extents (bAnimContext *ac, float *min, float *max) /* get range and apply necessary scaling before */ calc_fcurve_range(fcu, &tmin, &tmax); - tmin= tmax= 0.0f; // xxx if (nob) { tmin= get_action_frame_inv(nob, tmin); @@ -200,7 +199,7 @@ static int actkeys_viewall_exec(bContext *C, wmOperator *op) /* set the horizontal range, with an extra offset so that the extreme keys will be in view */ get_keyframe_extents(&ac, &v2d->cur.xmin, &v2d->cur.xmax); - extra= 0.05f * (v2d->cur.xmax - v2d->cur.xmin); + extra= 0.1f * (v2d->cur.xmax - v2d->cur.xmin); v2d->cur.xmin -= extra; v2d->cur.xmax += extra; -- cgit v1.2.3