diff options
author | Joshua Leung <aligorith@gmail.com> | 2010-01-25 14:06:55 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2010-01-25 14:06:55 +0300 |
commit | 3b446ed4e45fccc0e4a6fc998a28442b5429a209 (patch) | |
tree | 78ceb1e316a4cd8bf2a24aaea64fa508db406563 /source/blender/editors/space_graph/space_graph.c | |
parent | 7eb5504d79303efb2c9115db3aa033adeab2944c (diff) |
Durian Request/Bugfixes: Graph Editor Zooming doesn't go far enough
Pushed limits for Graph Editor view extents to proper limits, and fixed clamping used in View2D code which was preventing height of View2D viewports from getting below 1.0
Diffstat (limited to 'source/blender/editors/space_graph/space_graph.c')
-rw-r--r-- | source/blender/editors/space_graph/space_graph.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c index 4e12b850729..a623c5aae3a 100644 --- a/source/blender/editors/space_graph/space_graph.c +++ b/source/blender/editors/space_graph/space_graph.c @@ -151,11 +151,11 @@ static SpaceLink *graph_new(const bContext *C) ar->v2d.cur= ar->v2d.tot; - ar->v2d.min[0]= 0.00001f; - ar->v2d.min[1]= 0.00001f; - + ar->v2d.min[0]= FLT_MIN; + ar->v2d.min[1]= FLT_MIN; + ar->v2d.max[0]= MAXFRAMEF; - ar->v2d.max[1]= 50000.0f; + ar->v2d.max[1]= FLT_MAX; ar->v2d.scroll= (V2D_SCROLL_BOTTOM|V2D_SCROLL_SCALE_HORIZONTAL); ar->v2d.scroll |= (V2D_SCROLL_LEFT|V2D_SCROLL_SCALE_VERTICAL); |