Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-05-07 17:55:32 +0300
committerHans Goudey <h.goudey@me.com>2021-05-07 17:55:32 +0300
commit5bfd5e77b7825c4a76299dee7ea3e64b4ec95e56 (patch)
treed2185af5da03a8e46dd21d4d4c28182401b08037
parent36ffa5b915c5766fe776797e7f7f472f0e1ca947 (diff)
Fix: Curve to mesh node fails with one point and no profile
Just because the spline is cyclic does not necessarily mean that it has an edge.
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc b/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc
index 071504ad8df..bb5169c819c 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_curve_to_mesh.cc
@@ -58,7 +58,7 @@ static void vert_extrude_to_mesh_data(const Spline &spline,
edge.flag = ME_LOOSEEDGE;
}
- if (spline.is_cyclic()) {
+ if (spline.is_cyclic() && spline.evaluated_edges_size() > 1) {
MEdge &edge = r_edges[edge_offset++];
edge.v1 = vert_offset;
edge.v2 = vert_offset + positions.size() - 1;