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
This commit is contained in:
Falk David
2024-05-24 10:30:26 +02:00
committed by Falk David
parent 4aadff7e97
commit f011d8f508

View File

@@ -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;