Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/animation/anim_filter.c
| Show First 20 Lines • Show All 411 Lines • ▼ Show 20 Lines | bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac) | ||||
| animedit_get_yscale_factor(ac); | animedit_get_yscale_factor(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) | |||||
sybren: This can be `const eAnimCont_Types type` | |||||
| { | |||||
| return type == ANIMCONT_GPENCIL; | |||||
| } | |||||
| /* ************************************************************ */ | /* ************************************************************ */ | ||||
| /* 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 | ||||
| * | * | ||||
| * cases: | * cases: | ||||
| * 1) Graph Edit main area (just data) OR channels visible in Channel List | * 1) Graph Edit main area (just data) OR channels visible in Channel List | ||||
| ▲ Show 20 Lines • Show All 3,156 Lines • Show Last 20 Lines | |||||
This can be const eAnimCont_Types type