remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros...
[blender-staging.git] / source / blender / editors / render / render_shading.c
index 14f7e337f91430a5605c3a8a417b5e83bf7f49bf..6722ac5e68669ce28be0832a9e1ae95c06b22fa4 100644 (file)
@@ -170,8 +170,7 @@ static int material_slot_assign_exec(bContext *C, wmOperator *UNUSED(op))
                        BMIter iter;
 
                        if (em) {
-                               BM_ITER(efa, &iter, em->bm, BM_FACES_OF_MESH, NULL)
-                               {
+                               BM_ITER_MESH (efa, &iter, em->bm, BM_FACES_OF_MESH) {
                                        if (BM_elem_flag_test(efa, BM_ELEM_SELECT))
                                                efa->mat_nr = ob->actcol - 1;
                                }