diff options
author | Jacques Lucke <jacques@blender.org> | 2021-04-23 14:09:41 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-04-23 14:09:41 +0300 |
commit | 361579c86abe4a0ee302f4305f7f155fee8eff32 (patch) | |
tree | d542ecfd7515b39c75ccdfc602490cf4e302f3c9 /source/blender/blenkernel | |
parent | 4cb8438e08cb64d755f627c8eeb3e8cda73864f1 (diff) | |
parent | 5441f5fc90c600aa5bbd08c8cd212fb0734f86cc (diff) |
Merge branch 'blender-v2.93-release'
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/geometry_component_mesh.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/geometry_component_mesh.cc b/source/blender/blenkernel/intern/geometry_component_mesh.cc index e54c3716660..2ecd0e6bd85 100644 --- a/source/blender/blenkernel/intern/geometry_component_mesh.cc +++ b/source/blender/blenkernel/intern/geometry_component_mesh.cc @@ -529,7 +529,7 @@ void adapt_mesh_domain_edge_to_corner_impl(const Mesh &mesh, /* For every corner, mix the values from the adjacent edges on the face. */ for (const int loop_index : IndexRange(poly.loopstart, poly.totloop)) { - const int loop_index_prev = (loop_index - 1) % poly.totloop; + const int loop_index_prev = loop_index - 1 + (loop_index == poly.loopstart) * poly.totloop; const MLoop &loop = mesh.mloop[loop_index]; const MLoop &loop_prev = mesh.mloop[loop_index_prev]; mixer.mix_in(loop_index, old_values[loop.e]); |