GPencil: Removed the restriction of not subdividing strokes further if it exceeds GP_STROKE_BUFFER_MAX
Assuming that this subdivision + smoothing mostly only happens at the end of a stroke anyway, enforcing this max-points limit in some cases was resulting in strokes that weren't quite getting subdivided properly as the others.
This commit is contained in:
parent
e78a929d68
commit
fd8f51da08
@ -616,12 +616,6 @@ static void gp_stroke_newfrombuffer(tGPsdata *p)
|
||||
int new_totpoints = gps->totpoints;
|
||||
|
||||
for (i = 0; i < sublevel; i++) {
|
||||
/* Avoid error if subdivide is too big (assume totpoints is right) */
|
||||
if (new_totpoints + (new_totpoints - 1) > GP_STROKE_BUFFER_MAX) {
|
||||
/* Reduce sublevel to avoid too-dense strokes */
|
||||
sublevel = i;
|
||||
break;
|
||||
}
|
||||
new_totpoints += new_totpoints - 1;
|
||||
}
|
||||
gps->points = MEM_callocN(sizeof(bGPDspoint) * new_totpoints, "gp_stroke_points");
|
||||
|
Loading…
Reference in New Issue
Block a user