[Bf-blender-cvs] [f7a781d45fc] master: Fix T101547: Add update notifiers in dopesheet and timeline selection operators

Amelie Fondevilla noreply at git.blender.org
Fri Oct 7 11:50:11 CEST 2022


Commit: f7a781d45fcc79844c4d7fc8a17ede3d6cfc1eaf
Author: Amelie Fondevilla
Date:   Fri Oct 7 11:44:27 2022 +0200
Branches: master
https://developer.blender.org/rBf7a781d45fcc79844c4d7fc8a17ede3d6cfc1eaf

Fix T101547: Add update notifiers in dopesheet and timeline selection operators

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

===================================================================

M	source/blender/editors/animation/anim_filter.c

===================================================================

diff --git a/source/blender/editors/animation/anim_filter.c b/source/blender/editors/animation/anim_filter.c
index 302e50e64d7..8fd3c319452 100644
--- a/source/blender/editors/animation/anim_filter.c
+++ b/source/blender/editors/animation/anim_filter.c
@@ -419,7 +419,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);
 }
 
 /* ************************************************************ */



More information about the Bf-blender-cvs mailing list