[Bf-blender-cvs] [932375336f3] greasepencil-object: GPencil: Initialize Weight Paint data

Antonio Vazquez noreply at git.blender.org
Mon Nov 4 17:49:33 CET 2019


Commit: 932375336f33258b737ef853f57bc4623bda81db
Author: Antonio Vazquez
Date:   Mon Nov 4 16:08:33 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB932375336f33258b737ef853f57bc4623bda81db

GPencil: Initialize Weight Paint data

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

M	source/blender/editors/gpencil/gpencil_paint.c
M	source/blender/editors/gpencil/gpencil_primitive.c

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

diff --git a/source/blender/editors/gpencil/gpencil_paint.c b/source/blender/editors/gpencil/gpencil_paint.c
index 18200bb9e97..868d2f87bd2 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -980,6 +980,7 @@ static void gp_stroke_newfrombuffer(tGPsdata *p)
   const int subdivide = brush->gpencil_settings->draw_subdivide;
 
   gps->points = MEM_callocN(sizeof(bGPDspoint) * gps->totpoints, "gp_stroke_points");
+  gps->dvert = NULL;
 
   /* initialize triangle memory to dummy data */
   gps->triangles = MEM_callocN(sizeof(bGPDtriangle), "GP Stroke triangulation");
diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c
index add7cbf52cf..26dc1745f2a 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -377,6 +377,7 @@ static void gp_primitive_set_initdata(bContext *C, tGPDprimitive *tgpi)
   /* allocate memory for storage points, but keep empty */
   gps->totpoints = 0;
   gps->points = MEM_callocN(sizeof(bGPDspoint), "gp_stroke_points");
+  gps->dvert = NULL;
   /* initialize triangle memory to dummy data */
   gps->tot_triangles = 0;
   gps->triangles = NULL;



More information about the Bf-blender-cvs mailing list