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:
authorCampbell Barton <campbell@blender.org>2022-09-15 10:10:39 +0300
committerCampbell Barton <campbell@blender.org>2022-09-15 10:10:39 +0300
commit5d69958442216b926b7d64f259099cd00beea376 (patch)
tree4494790d8ad91cb71b4830986bda7ab9b96af96c /source/blender/modifiers/intern
parent718d545ff88f3092f4bd6baef3e3d5642109da0c (diff)
Correct over allocation in 0e172e9732a1cab2aba324ce10ce304df7b69338
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r--source/blender/modifiers/intern/MOD_correctivesmooth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_correctivesmooth.c b/source/blender/modifiers/intern/MOD_correctivesmooth.c
index 5e46e98263c..bed88272ee6 100644
--- a/source/blender/modifiers/intern/MOD_correctivesmooth.c
+++ b/source/blender/modifiers/intern/MOD_correctivesmooth.c
@@ -696,7 +696,7 @@ static void correctivesmooth_modifier_do(ModifierData *md,
tangent_spaces = MEM_malloc_arrayN(loops_num, sizeof(float[3][3]), __func__);
tangent_weights = MEM_malloc_arrayN(loops_num, sizeof(float), __func__);
- tangent_weights_per_vertex = MEM_malloc_arrayN(loops_num, sizeof(float), __func__);
+ tangent_weights_per_vertex = MEM_malloc_arrayN(verts_num, sizeof(float), __func__);
calc_tangent_spaces(
mesh, vertexCos, tangent_spaces, tangent_weights, tangent_weights_per_vertex);