Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-04-28 16:45:21 +0300
committerHans Goudey <h.goudey@me.com>2022-04-28 16:45:31 +0300
commitc9c95201d0812967e6b03d68a51721e79cd429d8 (patch)
treea63c5e6d440df4c46a170435ded79a7e5ada96a4 /source/blender/blenkernel
parent0ad73bb9655f04afb5ad56174d8fb416cded3e4c (diff)
Fix T97679: Retrieving shape key normals modifies vertices
Caused by not using the proper duplicated `MVert` array. Error in b0aaf6ff4a9731e9142d8.
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r--source/blender/blenkernel/intern/key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/key.c b/source/blender/blenkernel/intern/key.c
index 5247e9f358b..73b66edd4fb 100644
--- a/source/blender/blenkernel/intern/key.c
+++ b/source/blender/blenkernel/intern/key.c
@@ -2196,7 +2196,7 @@ void BKE_keyblock_mesh_calc_normals(struct KeyBlock *kb,
}
MVert *mvert = MEM_dupallocN(mesh->mvert);
- BKE_keyblock_convert_to_mesh(kb, mesh->mvert, mesh->totvert);
+ BKE_keyblock_convert_to_mesh(kb, mvert, mesh->totvert);
const bool loop_normals_needed = r_loopnors != NULL;
const bool vert_normals_needed = r_vertnors != NULL || loop_normals_needed;
@@ -2237,7 +2237,7 @@ void BKE_keyblock_mesh_calc_normals(struct KeyBlock *kb,
}
if (loop_normals_needed) {
short(*clnors)[2] = CustomData_get_layer(&mesh->ldata, CD_CUSTOMLOOPNORMAL); /* May be NULL. */
- BKE_mesh_normals_loop_split(mesh->mvert,
+ BKE_mesh_normals_loop_split(mvert,
vert_normals,
mesh->totvert,
mesh->medge,