diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-21 17:16:58 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-21 17:16:58 +0300 |
commit | ff46afb4dd3e04f22640a5f2e49e75ed088e3a93 (patch) | |
tree | 6696240593ad3cfe4556803c3ce2ca2588e88e5c /source | |
parent | 4b48b1079d9175a5b86b2299c902cac0fbe27f09 (diff) |
Fix: Curve trim crash on splines with no edges
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc index 2963b2c4bbb..82e2d7ad283 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc @@ -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]) { |