Fix T95202: Curve to mesh node inconsistent edge vertex order
Though the edge vertices aren't really meant to have an order, it can make a difference in operations when there isn't any other information to make decisions from, like etruding a circle of loose edges (the situation in the report). This commit changes the order of the vertices in the final cyclic edge to go in the same direction as all of the other edges.
This commit is contained in:
parent
834b966b41
commit
89dbad9085
Notes:
blender-bot
2023-02-14 09:02:41 +01:00
Referenced by issue #95202, Flipped normal on extruded curve.
|
@ -66,8 +66,8 @@ static void vert_extrude_to_mesh_data(const Spline &spline,
|
|||
|
||||
if (spline.is_cyclic() && spline.evaluated_edges_size() > 1) {
|
||||
MEdge &edge = r_edges[edge_offset + spline.evaluated_edges_size() - 1];
|
||||
edge.v1 = vert_offset;
|
||||
edge.v2 = vert_offset + eval_size - 1;
|
||||
edge.v1 = vert_offset + eval_size - 1;
|
||||
edge.v2 = vert_offset;
|
||||
edge.flag = ME_LOOSEEDGE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue