Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_action/action_draw.c
| Show First 20 Lines • Show All 266 Lines • ▼ Show 20 Lines | if (IN_RANGE(ymin, v2d->cur.ymin, v2d->cur.ymax) || | ||||
| if (show_group_colors && fcu->grp && fcu->grp->customCol) { | if (show_group_colors && fcu->grp && fcu->grp->customCol) { | ||||
| immUniformColor3ubvAlpha((uchar *)fcu->grp->cs.active, sel ? col1[3] : col2[3]); | immUniformColor3ubvAlpha((uchar *)fcu->grp->cs.active, sel ? col1[3] : col2[3]); | ||||
| } | } | ||||
| else { | else { | ||||
| immUniformColor4ubv(sel ? col1 : col2); | immUniformColor4ubv(sel ? col1 : col2); | ||||
| } | } | ||||
| break; | break; | ||||
| } | } | ||||
| case ANIMTYPE_GPLAYER: { | |||||
| if (show_group_colors) { | |||||
| uchar gpl_col[4]; | |||||
| bGPDlayer *gpl = (bGPDlayer *)ale->data; | |||||
| rgb_float_to_uchar(gpl_col, gpl->color); | |||||
| gpl_col[3] = col1[3]; | |||||
| immUniformColor4ubv(sel ? col1 : gpl_col); | |||||
| } | |||||
| else { | |||||
| immUniformColor4ubv(sel ? col1 : col2); | |||||
| } | |||||
| break; | |||||
| } | |||||
| default: { | default: { | ||||
| immUniformColor4ubv(sel ? col1 : col2); | immUniformColor4ubv(sel ? col1 : col2); | ||||
| } | } | ||||
| } | } | ||||
| /* draw region twice: firstly backdrop, then the current range */ | /* draw region twice: firstly backdrop, then the current range */ | ||||
| immRectf(pos, v2d->cur.xmin, ymin, v2d->cur.xmax + EXTRA_SCROLL_PAD, ymax); | immRectf(pos, v2d->cur.xmin, ymin, v2d->cur.xmax + EXTRA_SCROLL_PAD, ymax); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 365 Lines • Show Last 20 Lines | |||||