BMesh: add ability not to delete vertex when collapsing
[blender.git] / source / blender / python / bmesh / bmesh_py_utils.c
index 236d6badd55a02a7e05859f9cfc6e825564583dc..4f1ca568bb0866be8646751bf9932c320b0ca05d 100644 (file)
@@ -90,7 +90,7 @@ static PyObject *bpy_bm_utils_vert_collapse_edge(PyObject *UNUSED(self), PyObjec
 
        bm = py_edge->bm;
 
-       e_new = BM_vert_collapse_edge(bm, py_edge->e, py_vert->v, true);
+       e_new = BM_vert_collapse_edge(bm, py_edge->e, py_vert->v, true, true);
 
        if (e_new) {
                return BPy_BMEdge_CreatePyObject(bm, e_new);
@@ -156,7 +156,7 @@ static PyObject *bpy_bm_utils_vert_collapse_faces(PyObject *UNUSED(self), PyObje
 
        bm = py_edge->bm;
 
-       e_new = BM_vert_collapse_faces(bm, py_edge->e, py_vert->v, CLAMPIS(fac, 0.0f, 1.0f), do_join_faces, true);
+       e_new = BM_vert_collapse_faces(bm, py_edge->e, py_vert->v, CLAMPIS(fac, 0.0f, 1.0f), true, do_join_faces, true);
 
        if (e_new) {
                return BPy_BMEdge_CreatePyObject(bm, e_new);