yet another instance dissolve deletes verts it loops over.
authorCampbell Barton <ideasman42@gmail.com>
Thu, 3 Oct 2013 10:50:03 +0000 (10:50 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 3 Oct 2013 10:50:03 +0000 (10:50 +0000)
source/blender/bmesh/operators/bmo_dissolve.c

index e85a9c081b9841d55882c48ae6d1ddf4844b9543..129f72dc81c4cb27012383c0b2cbd922dcd1cdcb 100644 (file)
@@ -362,7 +362,7 @@ void bmo_dissolve_verts_exec(BMesh *bm, BMOperator *op)
                bm_face_split(bm, VERT_MARK);
        }
 
-       BM_ITER_MESH (v, &iter, bm, BM_VERTS_OF_MESH) {
+       BM_ITER_MESH_MUTABLE (v, v_next, &iter, bm, BM_VERTS_OF_MESH) {
                if (BMO_elem_flag_test(bm, v, VERT_MARK)) {
                        /* check if it's a two-valence ver */
                        if (BM_vert_edge_count(v) == 2) {