From f011d8f508c8664dddac337af35844904baa60bf Mon Sep 17 00:00:00 2001 From: Falk David Date: Fri, 24 May 2024 10:30:26 +0200 Subject: [PATCH] Fix #122159: GPv3: Missing update after selecting frames in multiframe edit The `ANIM_animdata_update` wasn't handling the GPv3 cases. This meant that e.g. changing the selection of keyframes did not cause an update to be triggered. This fixes the issue by making sure we call `ANIM_list_elem_update` for all the grease pencil channel types. Pull Request: https://projects.blender.org/blender/blender/pulls/122167 --- source/blender/editors/animation/anim_deps.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/animation/anim_deps.cc b/source/blender/editors/animation/anim_deps.cc index 23a6fea7970..971310b3265 100644 --- a/source/blender/editors/animation/anim_deps.cc +++ b/source/blender/editors/animation/anim_deps.cc @@ -362,7 +362,10 @@ void ANIM_animdata_update(bAnimContext *ac, ListBase *anim_data) ANIMTYPE_ANIMDATA, ANIMTYPE_NLAACTION, ANIMTYPE_NLATRACK, - ANIMTYPE_NLACURVE)) + ANIMTYPE_NLACURVE, + ANIMTYPE_GREASE_PENCIL_LAYER, + ANIMTYPE_GREASE_PENCIL_LAYER_GROUP, + ANIMTYPE_GREASE_PENCIL_DATABLOCK)) { if (ale->update & ANIM_UPDATE_DEPS) { ale->update &= ~ANIM_UPDATE_DEPS;