GPencil: Remove memory allocation for triangles

This will be replaced later, so it's not logic allocate now.
This commit is contained in:
2020-01-07 12:14:36 +01:00
parent 122a0afa96
commit a99f6e5df1
2 changed files with 2 additions and 2 deletions

View File

@@ -494,7 +494,7 @@ bGPDstroke *BKE_gpencil_add_stroke(bGPDframe *gpf, int mat_idx, int totpoints, s
gps->points = MEM_callocN(sizeof(bGPDspoint) * gps->totpoints, "gp_stroke_points");
/* initialize triangle memory to dummy data */
gps->triangles = MEM_callocN(sizeof(bGPDtriangle), "GP Stroke triangulation");
gps->triangles = NULL;
gps->flag |= GP_STROKE_RECALC_GEOMETRY;
gps->tot_triangles = 0;

View File

@@ -1173,7 +1173,7 @@ static void gp_stroke_newfrombuffer(tGPsdata *p)
gps->points = MEM_callocN(sizeof(bGPDspoint) * gps->totpoints, "gp_stroke_points");
/* initialize triangle memory to dummy data */
gps->triangles = MEM_callocN(sizeof(bGPDtriangle), "GP Stroke triangulation");
gps->triangles = NULL;
gps->flag |= GP_STROKE_RECALC_GEOMETRY;
gps->tot_triangles = 0;
/* drawing batch cache is dirty now */