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:
authorJoshua Leung <aligorith@gmail.com>2007-05-23 13:21:32 +0400
committerJoshua Leung <aligorith@gmail.com>2007-05-23 13:21:32 +0400
commit80914f22ae8ea65c6560202ec05f05150fff6f53 (patch)
tree0c37578f28f5b590030b90a17174f66100eb1bc3 /source/blender/src/drawaction.c
parent2a63a47a56b01aef20fc389b25471eb68bd3e9b6 (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/drawaction.c')
-rw-r--r--source/blender/src/drawaction.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/source/blender/src/drawaction.c b/source/blender/src/drawaction.c
index 52d9f59ae88..fd6f5f8f0b4 100644
--- a/source/blender/src/drawaction.c
+++ b/source/blender/src/drawaction.c
@@ -280,7 +280,7 @@ static void action_icu_buts(SpaceAction *saction)
UI_EMBOSS, UI_HELV, curarea->win);
x = NAMEWIDTH + 1;
- y = count_action_levels(act)*(CHANNELHEIGHT+CHANNELSKIP);
+ y = 0.0;
uiBlockSetEmboss(block, UI_EMBOSSN);
@@ -379,7 +379,7 @@ static void draw_action_channel_names(bAction *act)
float x, y;
x = 0.0;
- y= count_action_levels(act)*(CHANNELHEIGHT+CHANNELSKIP);
+ y = 0.0f;
for (achan=act->chanbase.first; achan; achan= achan->next) {
if(VISIBLE_ACHAN(achan)) {
@@ -706,7 +706,7 @@ static void draw_channel_strips(SpaceAction *saction)
map_active_strip(di, OBACT, 1);
/* first backdrop strips */
- y= count_action_levels(act)*(CHANNELHEIGHT+CHANNELSKIP);
+ y = 0.0;
glEnable(GL_BLEND);
for (achan=act->chanbase.first; achan; achan= achan->next) {
if(VISIBLE_ACHAN(achan)) {
@@ -776,8 +776,8 @@ static void draw_channel_strips(SpaceAction *saction)
if (G.saction->pin==0 && OBACT)
map_active_strip(di, OBACT, 0);
- /* dot thingies */
- y= count_action_levels(act)*(CHANNELHEIGHT+CHANNELSKIP);
+ /* keyframes */
+ y = 0.0;
for (achan= act->chanbase.first; achan; achan= achan->next) {
if(VISIBLE_ACHAN(achan)) {
@@ -828,8 +828,7 @@ static void draw_channel_strips(SpaceAction *saction)
static void draw_mesh_strips(SpaceAction *saction, Key *key)
{
- /* draw the RVK keyframes as those little square button things
- */
+ /* draw the RVK keyframes */
rcti scr_rct;
gla2DDrawInfo *di;
float y, ybase;