diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-26 20:59:46 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-26 20:59:46 +0300 |
commit | be3e09ecec5372f87b3e9779adb821867b062be1 (patch) | |
tree | 9b557705576536c855799d9826bf133494b403f7 /source | |
parent | 9fa304bf13e402405351a2c9bc14903c08b557e5 (diff) |
Fix: Inverted normal for one curve to mesh cap
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/curve_to_mesh_convert.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/curve_to_mesh_convert.cc b/source/blender/blenkernel/intern/curve_to_mesh_convert.cc index b3957e57920..cd40d5e8a41 100644 --- a/source/blender/blenkernel/intern/curve_to_mesh_convert.cc +++ b/source/blender/blenkernel/intern/curve_to_mesh_convert.cc @@ -199,9 +199,10 @@ static void spline_extrude_to_mesh_data(const ResultInfo &info, info.profile_edge_len * last_ring_index; for (const int i : IndexRange(info.profile_edge_len)) { + const int i_inv = info.profile_edge_len - i - 1; MLoop &loop_start = r_loops[cap_loop_offset + i]; - loop_start.v = info.vert_offset + i; - loop_start.e = profile_edges_start + i; + loop_start.v = info.vert_offset + i_inv; + loop_start.e = profile_edges_start + i_inv; MLoop &loop_end = r_loops[cap_loop_offset + info.profile_edge_len + i]; loop_end.v = last_ring_vert_offset + i; loop_end.e = last_ring_edge_offset + i; |