Missed last commit
This commit is contained in:
@@ -399,20 +399,13 @@ static void gp_triangulate_stroke_fill(bGPDstroke *gps)
|
||||
gps->triangles = MEM_recallocN(gps->triangles, sizeof(*gps->triangles) * gps->tot_triangles);
|
||||
}
|
||||
|
||||
int triangle_index = 0;
|
||||
int i;
|
||||
|
||||
for (i = 0; (i < gps->totpoints) && (triangle_index < gps->tot_triangles); i++) {
|
||||
if ((tmp_triangles[i][0] >= 0) && (tmp_triangles[i][0] < gps->totpoints) &&
|
||||
(tmp_triangles[i][1] >= 0) && (tmp_triangles[i][1] < gps->totpoints) &&
|
||||
(tmp_triangles[i][2] >= 0) && (tmp_triangles[i][2] < gps->totpoints))
|
||||
{
|
||||
bGPDtriangle *stroke_triangle = &gps->triangles[triangle_index++];
|
||||
|
||||
stroke_triangle->v1 = tmp_triangles[i][0];
|
||||
stroke_triangle->v2 = tmp_triangles[i][1];
|
||||
stroke_triangle->v3 = tmp_triangles[i][2];
|
||||
}
|
||||
for (i = 0; i < gps->tot_triangles; i++) {
|
||||
bGPDtriangle *stroke_triangle = &gps->triangles[i];
|
||||
stroke_triangle->v1 = tmp_triangles[i][0];
|
||||
stroke_triangle->v2 = tmp_triangles[i][1];
|
||||
stroke_triangle->v3 = tmp_triangles[i][2];
|
||||
}
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user