diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-12-21 02:01:11 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-12-21 02:01:11 +0400 |
commit | deb3b7e282c9fed045201ca39d682baf3a281ffe (patch) | |
tree | 32dc00329eb7fb2509929a85b83b0c7838a6b2ad /source/blender/editors/mesh/editface.c | |
parent | cceef0d44fbbec3ee300d7e3cc01d5eab19a36c8 (diff) |
replace editmode topo mirror function from the one in trunk (ED_mesh_mirrtopo_init)
Diffstat (limited to 'source/blender/editors/mesh/editface.c')
-rw-r--r-- | source/blender/editors/mesh/editface.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/editors/mesh/editface.c b/source/blender/editors/mesh/editface.c index 5fed77c6f5d..bffb34f0a5f 100644 --- a/source/blender/editors/mesh/editface.c +++ b/source/blender/editors/mesh/editface.c @@ -820,7 +820,8 @@ int ED_mesh_mirrtopo_recalc_check(Mesh *me, const int ob_mode, MirrTopoStore_t * } -void ED_mesh_mirrtopo_init(Mesh *me, const int ob_mode, MirrTopoStore_t *mesh_topo_store) +void ED_mesh_mirrtopo_init(Mesh *me, const int ob_mode, MirrTopoStore_t *mesh_topo_store, + const short skip_em_vert_array_init) { MEdge *medge; BMEditMesh *em= me->edit_btmesh; @@ -914,7 +915,9 @@ void ED_mesh_mirrtopo_init(Mesh *me, const int ob_mode, MirrTopoStore_t *mesh_to mesh_topo_store->index_lookup = MEM_mallocN( totvert * sizeof(long), "mesh_topo_lookup" ); if(em) { - EDBM_init_index_arrays(em,1,0,0); + if (skip_em_vert_array_init == FALSE) { + EDBM_init_index_arrays(em,1,0,0); + } } @@ -949,7 +952,9 @@ void ED_mesh_mirrtopo_init(Mesh *me, const int ob_mode, MirrTopoStore_t *mesh_to } } if(em) { - EDBM_free_index_arrays(em); + if (skip_em_vert_array_init == FALSE) { + EDBM_free_index_arrays(em); + } } MEM_freeN( MirrTopoPairs ); |