diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-02-09 07:47:34 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-02-09 07:47:34 +0300 |
commit | 9dec5e8fa3a214da7ad406265204411aabda3c30 (patch) | |
tree | 5a5c1ac758de97bc5472ef53a4d526a83e2945dd /source/blender | |
parent | eb848445fb44808aed86bc4238ab02c497c1eb2f (diff) |
DopeSheet: Bugfix for View All (HomeKey)
Removing an old line of temporary code I forgot to remove
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_action/action_edit.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |