forked from bartvdbraak/blender
Modifier: no need to calloc (immediately filled)
This commit is contained in:
parent
07c61e9389
commit
6c96113d5f
@ -659,7 +659,7 @@ static DerivedMesh *applyModifier(
|
||||
}
|
||||
|
||||
if (do_clamp) {
|
||||
float *vert_lens_sq = MEM_callocN(sizeof(float) * numVerts, "vert_lens");
|
||||
float *vert_lens_sq = MEM_mallocN(sizeof(float) * numVerts, "vert_lens");
|
||||
const float offset = fabsf(smd->offset) * smd->offset_clamp;
|
||||
const float offset_sq = offset * offset;
|
||||
fill_vn_fl(vert_lens_sq, (int)numVerts, FLT_MAX);
|
||||
|
Loading…
Reference in New Issue
Block a user