diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-01-07 19:43:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-01-07 19:43:28 +0400 |
commit | f1cc922ccd1378a8e7206f4180dda7c8398aa9f3 (patch) | |
tree | 4594b6c245ec0b11e44d923e4089c33d1204aece | |
parent | ff6339a9799b854e145608c4ed3673227b85d971 (diff) |
dont copy the mvert array in DM_to_bmesh_ex()
-rw-r--r-- | source/blender/blenkernel/intern/modifiers_bmesh.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/modifiers_bmesh.c b/source/blender/blenkernel/intern/modifiers_bmesh.c index 7df7561a1a1..9b5cf443bcf 100644 --- a/source/blender/blenkernel/intern/modifiers_bmesh.c +++ b/source/blender/blenkernel/intern/modifiers_bmesh.c @@ -89,7 +89,7 @@ void DM_to_bmesh_ex(DerivedMesh *dm, BMesh *bm) etable = MEM_callocN(sizeof(void **) * totedge, __func__); /*do verts*/ - mv = mvert = dm->dupVertArray(dm); + mv = mvert = dm->getVertArray(dm); for (i = 0; i < totvert; i++, mv++) { v = BM_vert_create(bm, mv->co, NULL, BM_CREATE_SKIP_CD); normal_short_to_float_v3(v->no, mv->no); @@ -107,7 +107,6 @@ void DM_to_bmesh_ex(DerivedMesh *dm, BMesh *bm) *orig_index = ORIGINDEX_NONE; } } - MEM_freeN(mvert); if (is_init) bm->elem_index_dirty &= ~BM_VERT; /*do edges*/ |