Fix: Curve trim crash on splines with no edges

This commit is contained in:
Hans Goudey 2021-10-21 09:16:58 -05:00
parent 4b48b1079d
commit ff46afb4dd
1 changed files with 4 additions and 0 deletions

View File

@ -361,6 +361,10 @@ static void geometry_set_curve_trim(GeometrySet &geometry_set,
continue;
}
if (spline.evaluated_edges_size() == 0) {
continue;
}
/* Return a spline with one point instead of implicitly
* reversing the spline or switching the parameters. */
if (ends[i] < starts[i]) {