Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2008-12-12 20:10:54 +0300
committerTon Roosendaal <ton@blender.org>2008-12-12 20:10:54 +0300
commitfaf7965b3ca383d5b9504b644dff2ea40a55eb26 (patch)
tree50e9105eef2999f6cf8053d8ea070d9dba90a8e4 /source/blender/editors/space_time
parent2fa23a05941c652228d76c36e8f4d7e927538c8d (diff)
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...
Diffstat (limited to 'source/blender/editors/space_time')
-rw-r--r--source/blender/editors/space_time/space_time.c14
1 files changed, 7 insertions, 7 deletions
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;