Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_filter.c
| Show First 20 Lines • Show All 413 Lines • ▼ Show 20 Lines | bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac) | ||||
| /* get data context info */ | /* get data context info */ | ||||
| /* XXX: if the below fails, try to grab this info from context instead... | /* XXX: if the below fails, try to grab this info from context instead... | ||||
| * (to allow for scripting). */ | * (to allow for scripting). */ | ||||
| return ANIM_animdata_context_getdata(ac); | return ANIM_animdata_context_getdata(ac); | ||||
| } | } | ||||
| bool ANIM_animdata_can_have_greasepencil(const eAnimCont_Types type) | bool ANIM_animdata_can_have_greasepencil(const eAnimCont_Types type) | ||||
| { | { | ||||
| return type == ANIMCONT_GPENCIL; | return ELEM(type, ANIMCONT_GPENCIL, ANIMCONT_DOPESHEET, ANIMCONT_TIMELINE); | ||||
| } | } | ||||
| /* ************************************************************ */ | /* ************************************************************ */ | ||||
| /* Blender Data <-- Filter --> Channels to be operated on */ | /* Blender Data <-- Filter --> Channels to be operated on */ | ||||
| /* macros to use before/after getting the sub-channels of some channel, | /* macros to use before/after getting the sub-channels of some channel, | ||||
| * to abstract away some of the tricky logic involved | * to abstract away some of the tricky logic involved | ||||
| * | * | ||||
| ▲ Show 20 Lines • Show All 3,158 Lines • Show Last 20 Lines | |||||