[Bf-blender-cvs] [b283add8b72] temp-gpencil-interpolate: GPencil: Allow multiple interpolations on same frame

Antonio Vazquez noreply at git.blender.org
Sun Dec 20 12:26:17 CET 2020


Commit: b283add8b72a9db0b2c01af0f2e1bb3867192482
Author: Antonio Vazquez
Date:   Fri Dec 18 19:27:44 2020 +0100
Branches: temp-gpencil-interpolate
https://developer.blender.org/rBb283add8b72a9db0b2c01af0f2e1bb3867192482

GPencil: Allow multiple interpolations on same frame

===================================================================

M	source/blender/editors/gpencil/gpencil_interpolate.c

===================================================================

diff --git a/source/blender/editors/gpencil/gpencil_interpolate.c b/source/blender/editors/gpencil/gpencil_interpolate.c
index 442f0ee4af2..677fc7f95db 100644
--- a/source/blender/editors/gpencil/gpencil_interpolate.c
+++ b/source/blender/editors/gpencil/gpencil_interpolate.c
@@ -356,7 +356,7 @@ static void gpencil_interpolate_set_points(bContext *C, tGPDinterpolate *tgpi)
 
     BLI_addtail(&tgpi->ilayers, tgpil);
 
-    /* create a new temporary frame */
+    /* Create a new temporary frame. */
     tgpil->interFrame = MEM_callocN(sizeof(bGPDframe), "bGPDframe");
     tgpil->interFrame->framenum = tgpi->cframe;
 
@@ -638,8 +638,7 @@ static int gpencil_interpolate_modal(bContext *C, wmOperator *op, const wmEvent
         gpf_dst = BKE_gpencil_layer_frame_get(tgpil->gpl, tgpi->cframe, GP_GETFRAME_ADD_NEW);
         gpf_dst->key_type = BEZT_KEYTYPE_BREAKDOWN;
 
-        /* copy strokes */
-        BLI_listbase_clear(&gpf_dst->strokes);
+        /* Copy strokes. */
         LISTBASE_FOREACH (bGPDstroke *, gps_src, &tgpil->interFrame->strokes) {
           if (gps_src->totpoints == 0) {
             continue;



More information about the Bf-blender-cvs mailing list