From c2a626a4312cc734125b3fa36ee561e754204af2 Mon Sep 17 00:00:00 2001 From: Philipp Oeser Date: Wed, 13 Dec 2023 12:10:02 +0100 Subject: [PATCH] Fix #116130: Mirrored custom normals broken again Caused by c53e220aefe8 Above commit was working on the `mesh` (not the `result`) -- basically a typo... --- source/blender/blenkernel/intern/mesh_mirror.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/blenkernel/intern/mesh_mirror.cc b/source/blender/blenkernel/intern/mesh_mirror.cc index f83ffab771f..90354e1bc40 100644 --- a/source/blender/blenkernel/intern/mesh_mirror.cc +++ b/source/blender/blenkernel/intern/mesh_mirror.cc @@ -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("sharp_edge", ATTR_DOMAIN_EDGE); const VArraySpan sharp_faces = *attributes.lookup("sharp_face", ATTR_DOMAIN_FACE); blender::bke::mesh::normals_calc_loop(result->vert_positions(), -- 2.30.2