BMesh: add ability not to delete vertex when collapsing
[blender.git] / source / blender / bmesh / operators / bmo_dissolve.c
index 36a936c6622de2dd9d041021a7f94c863b94ce11..93296c51f8ecb73b9564024ae3edce0ff7ba23a8 100644 (file)
@@ -216,7 +216,7 @@ void bmo_dissolve_faces_exec(BMesh *bm, BMOperator *op)
                BM_ITER_MESH_MUTABLE (v, v_next, &viter, bm, BM_VERTS_OF_MESH) {
                        if (BMO_elem_flag_test(bm, v, VERT_MARK)) {
                                if (BM_vert_edge_count(v) == 2) {
-                                       BM_vert_collapse_edge(bm, v->e, v, true);
+                                       BM_vert_collapse_edge(bm, v->e, v, true, true);
                                }
                        }
                }
@@ -328,7 +328,7 @@ void bmo_dissolve_edges_exec(BMesh *bm, BMOperator *op)
                BM_ITER_MESH_MUTABLE (v, v_next, &iter, bm, BM_VERTS_OF_MESH) {
                        if (BMO_elem_flag_test(bm, v, VERT_MARK)) {
                                if (BM_vert_edge_count(v) == 2) {
-                                       BM_vert_collapse_edge(bm, v->e, v, true);
+                                       BM_vert_collapse_edge(bm, v->e, v, true, true);
                                }
                        }
                }
@@ -410,7 +410,7 @@ void bmo_dissolve_verts_exec(BMesh *bm, BMOperator *op)
        BM_ITER_MESH_MUTABLE (v, v_next, &iter, bm, BM_VERTS_OF_MESH) {
                if (BMO_elem_flag_test(bm, v, VERT_MARK)) {
                        if (BM_vert_edge_count(v) == 2) {
-                               BM_vert_collapse_edge(bm, v->e, v, true);
+                               BM_vert_collapse_edge(bm, v->e, v, true, true);
                        }
                }
        }