Fix #131299: Grease Pencil: Moving keyframes doesn't update viewport

Grease Pencil animation data is stored in the object-data, not the
`AnimData` of the Grease Pencil ID. This meant that the object was
not properly tagged for an update, because the code assumed that
the object had an `adt`.

The fix calls `ANIM_id_update` to directly tag the Grease Pencil
ID for an update (which will also update the Grease Pencil frames
animation data).
This commit is contained in:
Sybren A. Stüvel
2024-12-05 15:00:03 +01:00
committed by Falk David
parent 036551c6a0
commit 81beebe4b8

View File

@@ -1077,6 +1077,7 @@ static void recalcData_actedit(TransInfo *t)
}
grease_pencil_layer_reset_trans_data(
*static_cast<blender::bke::greasepencil::Layer *>(ale->data));
ANIM_id_update(ale->bmain, ale->id);
}
ANIM_animdata_freelist(&anim_data);
}