diff options
author | Joshua Leung <aligorith@gmail.com> | 2007-05-23 13:21:32 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2007-05-23 13:21:32 +0400 |
commit | 80914f22ae8ea65c6560202ec05f05150fff6f53 (patch) | |
tree | 0c37578f28f5b590030b90a17174f66100eb1bc3 /source/blender/src/header_action.c | |
parent | 2a63a47a56b01aef20fc389b25471eb68bd3e9b6 (diff) |
== 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...)
Diffstat (limited to 'source/blender/src/header_action.c')
-rw-r--r-- | source/blender/src/header_action.c | 8 |
1 files changed, 6 insertions, 2 deletions
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); |