mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Correct over allocation in "Fix Vertex Group Deform" operator
The pointer size was incorrectly being used instead of the float size.
This commit is contained in:
parent
6d12bc9e91
commit
a28fd0ceb5
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue