remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros...
[blender-staging.git] / source / blender / editors / object / object_transform.c
index 84861e9bf5d858c9d9ec6e522e97f96cc61c5447..559547906871aa070702b3bf416fccd779d1a755 100644 (file)
@@ -687,7 +687,7 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
                                mul_m4_v3(obedit->imat, cent);
                        }
                        else {
-                               BM_ITER (eve, &iter, em->bm, BM_VERTS_OF_MESH, NULL) {
+                               BM_ITER_MESH (eve, &iter, em->bm, BM_VERTS_OF_MESH) {
                                        if (around==V3D_CENTROID) {
                                                total++;
                                                add_v3_v3(cent, eve->co);
@@ -700,7 +700,7 @@ static int object_origin_set_exec(bContext *C, wmOperator *op)
                                }
                        }
                        
-                       BM_ITER (eve, &iter, em->bm, BM_VERTS_OF_MESH, NULL) {
+                       BM_ITER_MESH (eve, &iter, em->bm, BM_VERTS_OF_MESH) {
                                sub_v3_v3(eve->co, cent);
                        }