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/key.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/key.c')
-rw-r--r-- | source/blender/blenkernel/intern/key.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c index 2ba81c54872..53147c94f43 100644 --- a/source/blender/blenkernel/intern/key.c +++ b/source/blender/blenkernel/intern/key.c @@ -2296,8 +2296,8 @@ void BKE_keyblock_mesh_calc_normals(const KeyBlock *kb, (mesh->flag & ME_AUTOSMOOTH) != 0, mesh->smoothresh, NULL, - clnors, - NULL); + NULL, + clnors); } if (free_vert_normals) { |