== Action Editor - Group Colors ==
Made option to show group colors the default. If this is too colourful for you, disable it in the View menu.
This commit is contained in:
@@ -234,8 +234,8 @@ typedef enum SACTION_FLAG {
|
||||
SACTION_HORIZOPTIMISEON = (1<<5),
|
||||
/* hack for moving pose-markers (temp flag) */
|
||||
SACTION_POSEMARKERS_MOVE = (1<<6),
|
||||
/* draw action channels using group colours (where applicable) */
|
||||
SACTION_DRAWGCOLORS = (1<<7)
|
||||
/* don't draw action channels using group colours (where applicable) */
|
||||
SACTION_NODRAWGCOLORS = (1<<7)
|
||||
} SACTION_FLAG;
|
||||
|
||||
/* SpaceAction AutoSnap Settings (also used by SpaceNLA) */
|
||||
|
||||
@@ -637,7 +637,7 @@ static void draw_channel_names(void)
|
||||
* - use 3 shades of color group/standard colour for 3 indention level
|
||||
* - only use group colors if allowed to, and if actually feasible
|
||||
*/
|
||||
if ( (G.saction->flag & SACTION_DRAWGCOLORS) &&
|
||||
if ( !(G.saction->flag & SACTION_NODRAWGCOLORS) &&
|
||||
(grp) && (grp->customCol) )
|
||||
{
|
||||
char cp[3];
|
||||
|
||||
@@ -347,7 +347,7 @@ static void do_action_viewmenu(void *arg, int event)
|
||||
G.saction->flag ^= SACTION_HORIZOPTIMISEON;
|
||||
break;
|
||||
case ACTMENU_VIEW_GCOLORS: /* Draw grouped-action channels using its group's color */
|
||||
G.saction->flag ^= SACTION_DRAWGCOLORS;
|
||||
G.saction->flag ^= SACTION_NODRAWGCOLORS;
|
||||
break;
|
||||
}
|
||||
allqueue(REDRAWVIEW3D, 0);
|
||||
@@ -395,7 +395,7 @@ static uiBlock *action_viewmenu(void *arg_unused)
|
||||
menuwidth, 19, NULL, 0.0, 0.0, 1,
|
||||
ACTMENU_VIEW_NOHIDE, "");
|
||||
|
||||
uiDefIconTextBut(block, BUTM, 1, (G.saction->flag & SACTION_DRAWGCOLORS)?ICON_CHECKBOX_HLT:ICON_CHECKBOX_DEHLT,
|
||||
uiDefIconTextBut(block, BUTM, 1, (G.saction->flag & SACTION_NODRAWGCOLORS)?ICON_CHECKBOX_DEHLT:ICON_CHECKBOX_HLT,
|
||||
"Use Group Colors|", 0, yco-=20,
|
||||
menuwidth, 19, NULL, 0.0, 0.0, 1,
|
||||
ACTMENU_VIEW_GCOLORS, "");
|
||||
|
||||
Reference in New Issue
Block a user