From 567e3f650836ef060912c540013eb8fa0f447fe6 Mon Sep 17 00:00:00 2001 From: Amelie Fondevilla Date: Fri, 7 Oct 2022 11:44:27 +0200 Subject: Fix T101547: Add update notifiers in dopesheet and timeline selection operators MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates the function checking if a container can have grease pencil layer keyframes, to account for dopesheet in main mode, and timeline. Reviewed By: Sybren A. Stüvel Differential Revision: http://developer.blender.org/D16132 --- source/blender/editors/animation/anim_filter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/animation/anim_filter.c b/source/blender/editors/animation/anim_filter.c index e5deb03358f..6f19c30a6d8 100644 --- a/source/blender/editors/animation/anim_filter.c +++ b/source/blender/editors/animation/anim_filter.c @@ -416,7 +416,7 @@ bool ANIM_animdata_get_context(const bContext *C, bAnimContext *ac) bool ANIM_animdata_can_have_greasepencil(const eAnimCont_Types type) { - return type == ANIMCONT_GPENCIL; + return ELEM(type, ANIMCONT_GPENCIL, ANIMCONT_DOPESHEET, ANIMCONT_TIMELINE); } /* ************************************************************ */ -- cgit v1.2.3