GPencil: Fix unreported missing last point in NURBS conversion

The last point of the curve was missing.
This commit is contained in:
Antonio Vazquez 2020-07-31 13:47:12 +02:00
parent c565f16afb
commit feaed44ef6
1 changed files with 1 additions and 1 deletions

View File

@ -363,7 +363,7 @@ static void gpencil_convert_spline(Main *bmain,
BKE_nurb_makeCurve(nu, coord_array, NULL, NULL, NULL, resolu, sizeof(float[3]));
/* Allocate memory for storage points. */
gps->totpoints = nurb_points - 1;
gps->totpoints = nurb_points;
gps->points = MEM_callocN(sizeof(bGPDspoint) * gps->totpoints, "gp_stroke_points");
/* Add points. */