diff options
-rw-r--r-- | source/blender/blenkernel/intern/modifiers_bmesh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/modifiers_bmesh.c b/source/blender/blenkernel/intern/modifiers_bmesh.c index 8c79dee7a8b..13368be1acb 100644 --- a/source/blender/blenkernel/intern/modifiers_bmesh.c +++ b/source/blender/blenkernel/intern/modifiers_bmesh.c @@ -104,8 +104,8 @@ void DM_to_bmesh_ex(DerivedMesh *dm, BMesh *bm, const bool calc_face_normal) totedge = dm->getNumEdges(dm); /* totface = dm->getNumPolys(dm); */ /* UNUSED */ - vtable = MEM_callocN(sizeof(void **) * totvert, __func__); - etable = MEM_callocN(sizeof(void **) * totedge, __func__); + vtable = MEM_mallocN(sizeof(*vtable) * totvert, __func__); + etable = MEM_mallocN(sizeof(*etable) * totedge, __func__); /*do verts*/ mv = mvert = is_cddm ? dm->getVertArray(dm) : dm->dupVertArray(dm); |