diff options
author | Campbell Barton <campbell@blender.org> | 2022-04-26 07:29:03 +0300 |
---|---|---|
committer | Campbell Barton <campbell@blender.org> | 2022-04-26 07:33:04 +0300 |
commit | a28fd0ceb59420db1ad62bad08f526f1791db2ab (patch) | |
tree | 9c20a366b53053b7141d61cab011cf9b68583913 /source/blender/editors/object/object_vgroup.c | |
parent | 6d12bc9e918d47f39135750f9d99f901f88efc44 (diff) |
Correct over allocation in "Fix Vertex Group Deform" operator
The pointer size was incorrectly being used instead of the float size.
Diffstat (limited to 'source/blender/editors/object/object_vgroup.c')
-rw-r--r-- | source/blender/editors/object/object_vgroup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_vgroup.c b/source/blender/editors/object/object_vgroup.c index 1ad722d4fdc..492ece0b40e 100644 --- a/source/blender/editors/object/object_vgroup.c +++ b/source/blender/editors/object/object_vgroup.c @@ -1340,7 +1340,7 @@ static void moveCloserToDistanceFromPlane(Depsgraph *depsgraph, float oldPos[3] = {0}; float vc, hc, dist = 0.0f; int i, k; - float(*changes)[2] = MEM_mallocN(sizeof(float *) * totweight * 2, "vertHorzChange"); + float(*changes)[2] = MEM_mallocN(sizeof(float[2]) * totweight, "vertHorzChange"); float *dists = MEM_mallocN(sizeof(float) * totweight, "distance"); /* track if up or down moved it closer for each bone */ |