DopeSheet/Action Editor: Fixed display and expand-widget of 'Group' channels
authorJoshua Leung <aligorith@gmail.com>
Tue, 10 Feb 2009 23:08:53 +0000 (23:08 +0000)
committerJoshua Leung <aligorith@gmail.com>
Tue, 10 Feb 2009 23:08:53 +0000 (23:08 +0000)
source/blender/editors/animation/anim_channels.c
source/blender/editors/space_action/action_draw.c

index c0025a1b0f541437e457e6448912438c9df934de..9759d0905b60241909622a81331dd200c65b4758 100644 (file)
@@ -1136,7 +1136,7 @@ static void mouse_anim_channels (bAnimContext *ac, float x, int channel_index, s
                case ANIMTYPE_GROUP: 
                {
                        bActionGroup *agrp= (bActionGroup *)ale->data;
-                       short offset= (ac->datatype == ANIMCONT_DOPESHEET)? 18 : 0;
+                       short offset= (ELEM3(ac->datatype, ANIMCONT_DOPESHEET, ANIMCONT_FCURVES, ANIMCONT_DRIVERS))? 18 : 0;
                        
                        if ((x < (offset+17)) && (agrp->channels.first)) {
                                /* toggle expand */
index 4fb0690572e68c4caaaa00cae7240c6614034bb5..9b3852e63bf5aa71832b112eaa13ab9462e13716 100644 (file)
@@ -594,7 +594,7 @@ void draw_channel_names(bAnimContext *ac, SpaceAction *saction, ARegion *ar)
                                        indent= 0;
                                        special= -1;
                                        
-                                       offset= (ale->id) ? 16 : 0;
+                                       offset= (ac->datatype == ANIMCONT_DOPESHEET) ? 16 : 0;
                                        
                                        /* only show expand if there are any channels */
                                        if (agrp->channels.first) {