Fix #116130: Mirrored custom normals broken again

Caused by c53e220aef

Above commit was working on the `mesh` (not the `result`) -- basically a
typo...

Pull Request: https://projects.blender.org/blender/blender/pulls/116134
This commit is contained in:
Philipp Oeser 2023-12-13 13:51:56 +01:00 committed by Philipp Oeser
parent 5519a48702
commit 65274dc096
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ Mesh *BKE_mesh_mirror_apply_mirror_on_axis_for_modifier(MirrorModifierData *mmd,
transpose_m4(mtx_nor);
/* calculate custom normals into loop_normals, then mirror first half into second half */
const bke::AttributeAccessor attributes = mesh->attributes();
const bke::AttributeAccessor attributes = result->attributes();
const VArraySpan sharp_edges = *attributes.lookup<bool>("sharp_edge", ATTR_DOMAIN_EDGE);
const VArraySpan sharp_faces = *attributes.lookup<bool>("sharp_face", ATTR_DOMAIN_FACE);
blender::bke::mesh::normals_calc_loop(result->vert_positions(),