diff options
author | Amelie Fondevilla <amelie.fondevilla@les-fees-speciales.coop> | 2022-10-07 10:59:34 +0300 |
---|---|---|
committer | Amelie Fondevilla <amelie.fondevilla@les-fees-speciales.coop> | 2022-10-07 12:07:02 +0300 |
commit | 412d670e9c581dcafccd950d661611b6a496299c (patch) | |
tree | c879ac1401d11d49066e29926ee6a0a79ef29772 /source/blender/editors/animation/anim_filter.c | |
parent | 7eeeaec6da33971ab7805c9a4bfd5f4e186273d1 (diff) |
Refactor: adding function to check if an animation container has grease pencil layer keyframes.
Used in action_select to refactor the selection operators.
No functional changes.
Reviewed By: Sybren A. Stüvel
Differential Revision: http://developer.blender.org/D16168
Diffstat (limited to 'source/blender/editors/animation/anim_filter.c')
-rw-r--r-- | source/blender/editors/animation/anim_filter.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/editors/animation/anim_filter.c b/source/blender/editors/animation/anim_filter.c index e0df7328c74..302e50e64d7 100644 --- a/source/blender/editors/animation/anim_filter.c +++ b/source/blender/editors/animation/anim_filter.c @@ -417,6 +417,11 @@ bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac) return ANIM_animdata_context_getdata(ac); } +bool ANIM_animdata_can_have_greasepencil(const eAnimCont_Types type) +{ + return type == ANIMCONT_GPENCIL; +} + /* ************************************************************ */ /* Blender Data <-- Filter --> Channels to be operated on */ |