[Bf-blender-cvs] [4cd881c70f2] blender-v2.93-release: Fix T94903: GPencil: Copying keys doesn't preserve Keyframe Type
Antonio Vazquez
noreply at git.blender.org
Mon Jan 17 14:18:18 CET 2022
Commit: 4cd881c70f2e325ad30316dfbf5b32d22ba9da3b
Author: Antonio Vazquez
Date: Fri Jan 14 13:05:50 2022 +0100
Branches: blender-v2.93-release
https://developer.blender.org/rB4cd881c70f2e325ad30316dfbf5b32d22ba9da3b
Fix T94903: GPencil: Copying keys doesn't preserve Keyframe Type
When a new frame is created, ensure the keytype of source key is used.
===================================================================
M source/blender/editors/gpencil/editaction_gpencil.c
===================================================================
diff --git a/source/blender/editors/gpencil/editaction_gpencil.c b/source/blender/editors/gpencil/editaction_gpencil.c
index 166111c582c..4a53aa83358 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;
More information about the Bf-blender-cvs
mailing list