diff options
Diffstat (limited to 'source/blender/blenkernel/intern/mesh.c')
-rw-r--r-- | source/blender/blenkernel/intern/mesh.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/mesh.c b/source/blender/blenkernel/intern/mesh.c index f554888d978..de6f2f7e558 100644 --- a/source/blender/blenkernel/intern/mesh.c +++ b/source/blender/blenkernel/intern/mesh.c @@ -66,11 +66,26 @@ /* -- */ #include "BKE_object.h" #include "BKE_utildefines.h" +#include "BKE_tessmesh.h" #include "BLI_blenlib.h" #include "BLI_editVert.h" #include "BLI_arithb.h" +EditMesh *BKE_mesh_get_editmesh(Mesh *me) +{ + return bmesh_to_editmesh(me->edit_btmesh->bm); +} + +void BKE_mesh_end_editmesh(Mesh *me, EditMesh *em) +{ + BM_Free_Mesh(me->edit_btmesh->bm); + + me->edit_btmesh->bm = editmesh_to_bmesh(em); + TM_RecalcTesselation(me->edit_btmesh); +} + + void mesh_update_customdata_pointers(Mesh *me) { me->mvert = CustomData_get_layer(&me->vdata, CD_MVERT); |