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>2009-01-01 03:18:23 +0300
committerJoshua Leung <aligorith@gmail.com>2009-01-01 03:18:23 +0300
commitc2de1373d1c61815e3030f88c196e6c42cb1c5fc (patch)
treea5947fea741d57578066e3e7623bfccd67638b3e /source/blender/editors/space_action/action_draw.c
parentea42e70cb98713571704b2a48fd88cffc7bcbfb8 (diff)
2.5:
First commit for 2009! Started of porting of Animation Editor Channels stuff. This code will be used for both the Action and IPO editors, so any existing code involving this has now been moved to the Animation module. * Added mouse-click operator for this channels view. Note: the selection stuff currently uses temporary toggling code only (i.e. it only toggles the selection of the channels in the editor, but does not update status of rest of database). * Fixed bugs in View2D listview functions. Reduced the amount of code needed, and makes the code here simpler. * Renamed action_edit_keyframes.c to action_edit.c, since channels are not handled there anymore. * Dopesheet now refreshes correctly when object selection elsewhere changes.
Diffstat (limited to 'source/blender/editors/space_action/action_draw.c')
-rw-r--r--source/blender/editors/space_action/action_draw.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/space_action/action_draw.c b/source/blender/editors/space_action/action_draw.c
index 696188dada4..cb392a14eb7 100644
--- a/source/blender/editors/space_action/action_draw.c
+++ b/source/blender/editors/space_action/action_draw.c
@@ -402,6 +402,7 @@ void draw_channel_names(bAnimContext *ac, SpaceAction *saction, ARegion *ar)
ListBase anim_data = {NULL, NULL};
bAnimListElem *ale;
int filter;
+
View2D *v2d= &ar->v2d;
float x= 0.0f, y= 0.0f;
int items, height;
@@ -425,7 +426,7 @@ void draw_channel_names(bAnimContext *ac, SpaceAction *saction, ARegion *ar)
}
/* loop through channels, and set up drawing depending on their type */
- y= (float)(-ACHANNEL_HEIGHT);
+ y= (float)ACHANNEL_FIRST;
for (ale= anim_data.first; ale; ale= ale->next) {
const float yminc= (float)(y - ACHANNEL_HEIGHT_HALF);