diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-01-14 15:51:30 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-01-14 15:51:30 +0300 |
commit | c0432d5edb23e1c6b70862895efa0599c47ec301 (patch) | |
tree | 2eb7f4800322aaf594f66df44ae0846919963be3 /source/blender/editors/space_action | |
parent | 86b7746e3c31f55425016ade1ec5cee05fdfcb05 (diff) |
Fix T94089: GPencil Drawing don't Update after paste in Dopesheet
When paste new frames, the datablock need to be tagged to update the drawings.
Diffstat (limited to 'source/blender/editors/space_action')
-rw-r--r-- | source/blender/editors/space_action/action_edit.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_action/action_edit.c b/source/blender/editors/space_action/action_edit.c index f68446b1cae..184d715a347 100644 --- a/source/blender/editors/space_action/action_edit.c +++ b/source/blender/editors/space_action/action_edit.c @@ -642,6 +642,10 @@ static int actkeys_paste_exec(bContext *C, wmOperator *op) } } + /* Grease Pencil needs extra update to refresh the added keyframes. */ + if (ac.datatype == ANIMCONT_GPENCIL) { + WM_event_add_notifier(C, NC_GPENCIL | ND_DATA, NULL); + } /* set notifier that keyframes have changed */ WM_event_add_notifier(C, NC_ANIMATION | ND_KEYFRAME | NA_EDITED, NULL); |