Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_graph/graph_utils.c
| Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
| /* -------------------------------------------------------------------- */ | /* -------------------------------------------------------------------- */ | ||||
| /** \name Active F-Curve | /** \name Active F-Curve | ||||
| * \{ */ | * \{ */ | ||||
| bAnimListElem *get_active_fcurve_channel(bAnimContext *ac) | bAnimListElem *get_active_fcurve_channel(bAnimContext *ac) | ||||
| { | { | ||||
| ListBase anim_data = {NULL, NULL}; | ListBase anim_data = {NULL, NULL}; | ||||
| int filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_FOREDIT | ANIMFILTER_ACTIVE); | int filter = (ANIMFILTER_DATA_VISIBLE | ANIMFILTER_FOREDIT | ANIMFILTER_ACTIVE | ANIMFILTER_FCURVESONLY); | ||||
| size_t items = ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype); | size_t items = ANIM_animdata_filter(ac, &anim_data, filter, ac->data, ac->datatype); | ||||
| /* We take the first F-Curve only, since some other ones may have had 'active' flag set | /* We take the first F-Curve only, since some other ones may have had 'active' flag set | ||||
| * if they were from linked data. | * if they were from linked data. | ||||
| */ | */ | ||||
| if (items) { | if (items) { | ||||
| bAnimListElem *ale = (bAnimListElem *)anim_data.first; | bAnimListElem *ale = (bAnimListElem *)anim_data.first; | ||||
| ▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines | |||||