diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2022-01-14 15:05:50 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2022-01-14 15:05:57 +0300 |
commit | 86b7746e3c31f55425016ade1ec5cee05fdfcb05 (patch) | |
tree | 77a235a9196bd951f4d8cd9aa0fd3e1f418d0cf6 /source/blender/editors | |
parent | 0a3de0305c35f3dbe472b87d4e8f98ff117aa3ad (diff) |
Fix T94903: GPencil: Copying keys doesn't preserve Keyframe Type
When a new frame is created, ensure the keytype of source key is used.
Diffstat (limited to 'source/blender/editors')
-rw-r--r-- | source/blender/editors/gpencil/editaction_gpencil.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/gpencil/editaction_gpencil.c b/source/blender/editors/gpencil/editaction_gpencil.c index 046b3088360..d250f3c44a2 100644 --- a/source/blender/editors/gpencil/editaction_gpencil.c +++ b/source/blender/editors/gpencil/editaction_gpencil.c @@ -452,6 +452,8 @@ bool ED_gpencil_anim_copybuf_paste(bAnimContext *ac, const short offset_mode) /* get frame to copy data into (if no frame returned, then just ignore) */ gpf = BKE_gpencil_layer_frame_get(gpld, gpfs->framenum, GP_GETFRAME_ADD_NEW); + /* Ensure to use same keyframe type. */ + gpf->key_type = gpfs->key_type; if (gpf) { bGPDstroke *gps, *gpsn; |