From 80914f22ae8ea65c6560202ec05f05150fff6f53 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Wed, 23 May 2007 09:21:32 +0000 Subject: == Action Editor == Now Action/IPO-Curve/Constraint Channels draw so that they open downwards. The only noticeable differences are that when expanding/collapsing channels, all the channels above won't get shunted out of the way again. Also, on loading some older files, all the channels may be out of view (TODO: make version patch for this...) --- source/blender/src/header_action.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source/blender/src/header_action.c') diff --git a/source/blender/src/header_action.c b/source/blender/src/header_action.c index ee2bb71d9e1..14a62d67231 100644 --- a/source/blender/src/header_action.c +++ b/source/blender/src/header_action.c @@ -69,6 +69,7 @@ #include "BKE_main.h" #include "BKE_utildefines.h" +#include "BDR_drawaction.h" #include "BSE_drawipo.h" #include "BSE_headerbuttons.h" #include "BSE_time.h" @@ -173,13 +174,16 @@ void do_action_buttons(unsigned short event) G.v2d->cur.xmax= -5; G.v2d->cur.xmax= 100; } + + G.v2d->cur.ymin= -(count_action_levels(G.saction->action)*(CHANNELHEIGHT+CHANNELSKIP)); + G.v2d->cur.ymax= 0; } else { /* shapekeys and/or no action */ G.v2d->cur.xmax= -5; G.v2d->cur.xmax= 100; + G.v2d->cur.ymax= 1000; + G.v2d->cur.ymin= 0; } - G.v2d->cur.ymin= 0.0f; - G.v2d->cur.ymax= 1000.0f; G.v2d->tot= G.v2d->cur; test_view2d(G.v2d, curarea->winx, curarea->winy); -- cgit v1.2.3