diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-10 05:03:57 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-10 05:35:17 +0400 |
commit | 9b60174e75643b59435044c4d3f4572a4172184b (patch) | |
tree | 859d4c42237109414296ee05099b7a3749bcb6de | |
parent | f700a13eb54c374b6df3c6494e7a10ca9991722c (diff) |
BMesh: DM_to_bmesh_ex, no need to calloc
-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); |