Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/space_graph.c
| Show First 20 Lines • Show All 620 Lines • ▼ Show 20 Lines | static void graph_refresh_fcurve_colors(const bContext *C) | ||||
| } | } | ||||
| UI_SetTheme(SPACE_GRAPH, RGN_TYPE_WINDOW); | UI_SetTheme(SPACE_GRAPH, RGN_TYPE_WINDOW); | ||||
| /* build list of F-Curves which will be visible as channels in channel-region | /* build list of F-Curves which will be visible as channels in channel-region | ||||
| * - we don't include ANIMFILTER_CURVEVISIBLE filter, as that will result in a | * - we don't include ANIMFILTER_CURVEVISIBLE filter, as that will result in a | ||||
| * mismatch between channel-colors and the drawn curves | * mismatch between channel-colors and the drawn curves | ||||
| */ | */ | ||||
| filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_NODUPLIS); | filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_NODUPLIS | ANIMFILTER_FCURVESONLY); | ||||
| items = ANIM_animdata_filter(&ac, &anim_data, filter, ac.data, ac.datatype); | items = ANIM_animdata_filter(&ac, &anim_data, filter, ac.data, ac.datatype); | ||||
| /* loop over F-Curves, assigning colors */ | /* loop over F-Curves, assigning colors */ | ||||
| for (ale = anim_data.first, i = 0; ale; ale = ale->next, i++) { | for (ale = anim_data.first, i = 0; ale; ale = ale->next, i++) { | ||||
| FCurve *fcu = (FCurve *)ale->data; | FCurve *fcu = (FCurve *)ale->data; | ||||
| /* set color of curve here */ | /* set color of curve here */ | ||||
| switch (fcu->color_mode) { | switch (fcu->color_mode) { | ||||
| ▲ Show 20 Lines • Show All 245 Lines • Show Last 20 Lines | |||||