[Bf-blender-cvs] [6c96113] master: Modifier: no need to calloc (immediately filled)
Campbell Barton
noreply at git.blender.org
Tue Feb 24 14:09:59 CET 2015
Commit: 6c96113d5f8d292744aae36411d2cba0a0fd0519
Author: Campbell Barton
Date: Tue Feb 24 18:25:56 2015 +1100
Branches: master
https://developer.blender.org/rB6c96113d5f8d292744aae36411d2cba0a0fd0519
Modifier: no need to calloc (immediately filled)
===================================================================
M source/blender/modifiers/intern/MOD_solidify.c
===================================================================
diff --git a/source/blender/modifiers/intern/MOD_solidify.c b/source/blender/modifiers/intern/MOD_solidify.c
index 813ef28..00f541f 100644
--- a/source/blender/modifiers/intern/MOD_solidify.c
+++ b/source/blender/modifiers/intern/MOD_solidify.c
@@ -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);
More information about the Bf-blender-cvs
mailing list