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
This commit is contained in:
Amélie Fondevilla 2022-10-07 11:44:27 +02:00
parent 87ef423e6e
commit f7a781d45f
Notes: blender-bot 2023-02-14 06:23:08 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
Referenced by issue #101547, Grease Pencil: Multiframe editing doesn't update properly
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/* ************************************************************ */