From faf7965b3ca383d5b9504b644dff2ea40a55eb26 Mon Sep 17 00:00:00 2001 From: Ton Roosendaal Date: Fri, 12 Dec 2008 17:10:54 +0000 Subject: 2.5 - found fix for time-space view2d when increasing height of area, it has min/max Y zoom stored based on size of area... needs smarter way. - outliner: header file added, area switch menu + dummy pulldown. this will become template for other space types... --- source/blender/editors/space_time/space_time.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'source/blender/editors/space_time') diff --git a/source/blender/editors/space_time/space_time.c b/source/blender/editors/space_time/space_time.c index 1dec774aa55..d6faefa856b 100644 --- a/source/blender/editors/space_time/space_time.c +++ b/source/blender/editors/space_time/space_time.c @@ -230,16 +230,16 @@ static SpaceLink *time_new(void) ar->v2d.tot.xmax= (float)EFRA + 4.0; ar->v2d.tot.ymax= 10; - stime->v2d.cur= stime->v2d.tot; + ar->v2d.cur= ar->v2d.tot; - stime->v2d.min[0]= 1.0; - //stime->v2d.min[1]= (float)stime->winy; + ar->v2d.min[0]= 1.0; + ar->v2d.min[1]= 500.0; /* XXX */ - stime->v2d.max[0]= 32000.0; - //stime->v2d.max[1]= (float)stime->winy; + ar->v2d.max[0]= 32000.0; + ar->v2d.max[1]= 500; /* XXX */ - stime->v2d.minzoom= 0.1f; - stime->v2d.maxzoom= 10.0; + ar->v2d.minzoom= 0.1f; + ar->v2d.maxzoom= 10.0; ar->v2d.scroll |= (V2D_SCROLL_BOTTOM|V2D_SCROLL_SCALE_BOTTOM); ar->v2d.align |= V2D_ALIGN_NO_NEG_Y; -- cgit v1.2.3