code cleanup: better use of BLI_array_* (grow in larger steps where possible), includ...
[blender.git] / source / blender / bmesh / operators / bmo_subdivide.c
index d629585f7cd6ab45444541cfe1c6d00a457d0678..e2f00e3187fcbe847acbe163401da0876a31917f 100644 (file)
@@ -1042,9 +1042,8 @@ void BM_mesh_esubdivideflag(Object *UNUSED(obedit), BMesh *bm, int flag, float s
                BMOIter iter;
                BMElem *ele;
                // int i;
-               
-               ele = BMO_iter_new(&iter, bm, &op, "outinner", BM_EDGE|BM_VERT);
-               for ( ; ele; ele = BMO_iter_step(&iter)) {
+
+               for (ele = BMO_iter_new(&iter, bm, &op, "outinner", BM_EDGE | BM_VERT); ele; ele = BMO_iter_step(&iter)) {
                        BM_elem_select_set(bm, ele, TRUE);
                }
        }
@@ -1056,8 +1055,7 @@ void BM_mesh_esubdivideflag(Object *UNUSED(obedit), BMesh *bm, int flag, float s
                /* deselect input */
                BM_mesh_elem_hflag_disable_all(bm, BM_VERT | BM_EDGE | BM_FACE, BM_ELEM_SELECT, FALSE);
 
-               ele = BMO_iter_new(&iter, bm, &op, "outinner", BM_EDGE|BM_VERT);
-               for ( ; ele; ele = BMO_iter_step(&iter)) {
+               for (ele = BMO_iter_new(&iter, bm, &op, "outinner", BM_EDGE | BM_VERT); ele; ele = BMO_iter_step(&iter)) {
                        BM_elem_select_set(bm, ele, TRUE);
 
                        if (ele->head.htype == BM_VERT) {