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-18 12:44:33 +0300
commit05ca297596a8988fc4137017a9777a32ee04f48c (patch)
tree7578a5059569e74060320e78db273deb7bedc47c
parentf7b8875ed5a5e86375a119847f5cdf8d4719a62d (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 d2b1eba7d86..eb41961b66e 100644
--- a/source/blender/editors/gpencil/editaction_gpencil.c
+++ b/source/blender/editors/gpencil/editaction_gpencil.c
@@ -470,6 +470,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;