diff options
author | Hans Goudey <h.goudey@me.com> | 2022-11-12 07:56:44 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-11-12 08:27:36 +0300 |
commit | 1a8516163fa921e857b17ff152cc5264ab42b898 (patch) | |
tree | caa9e4e6a661b959a2728328d3837c4c1aa2502d /source/blender/blenkernel/intern/mesh_mirror.c | |
parent | d63ada602d37e5bf0f4f4c7984c538fcfed5bf39 (diff) |
Cleanup: Simplify handling of loop to poly map in normal calculation
A Loop to poly map was passed as an optional output to the loop normal
calculation. That meant it was often recalculated more than necessary.
Instead, treat it as an optional argument. This also helps relieve
unnecessary responsibilities from the already-complicated loop normal
calculation code.
Diffstat (limited to 'source/blender/blenkernel/intern/mesh_mirror.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh_mirror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/mesh_mirror.c b/source/blender/blenkernel/intern/mesh_mirror.c index ce3fc5d99c8..9f00d8860b8 100644 --- a/source/blender/blenkernel/intern/mesh_mirror.c +++ b/source/blender/blenkernel/intern/mesh_mirror.c @@ -418,9 +418,9 @@ Mesh *BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(MirrorModifierData *mmd, totpoly, true, mesh->smoothresh, + NULL, &lnors_spacearr, - clnors, - NULL); + clnors); /* mirroring has to account for loops being reversed in polys in second half */ MPoly *result_polys = BKE_mesh_polys_for_write(result); |