Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Vazquez <blendergit@gmail.com>2022-01-14 15:05:50 +0300
committerPhilipp Oeser <info@graphics-engineer.com>2022-01-17 14:02:37 +0300
commitd7a1fc0868f17f2652311488dcfe39946eef134b (patch)
tree2edf8e0ed8d09397df67850a5e9c565c40a0450a
parent40c5786df3309b82e358cc8935fc373b56833fb4 (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.
-rw-r--r--source/blender/editors/gpencil/editaction_gpencil.c2
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 fbdb7c8e520..5c4524202db 100644
--- a/source/blender/editors/gpencil/editaction_gpencil.c
+++ b/source/blender/editors/gpencil/editaction_gpencil.c
@@ -474,6 +474,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;