[Bf-blender-cvs] [ff46afb4dd3] master: Fix: Curve trim crash on splines with no edges
Hans Goudey
noreply at git.blender.org
Thu Oct 21 16:18:19 CEST 2021
Commit: ff46afb4dd3e04f22640a5f2e49e75ed088e3a93
Author: Hans Goudey
Date: Thu Oct 21 09:16:58 2021 -0500
Branches: master
https://developer.blender.org/rBff46afb4dd3e04f22640a5f2e49e75ed088e3a93
Fix: Curve trim crash on splines with no edges
===================================================================
M source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc
===================================================================
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]) {
More information about the Bf-blender-cvs
mailing list