{
BMIter iter;
BMHeader *ele;
- const char itypes[3] = {BM_VERTS_OF_MESH, BM_EDGES_OF_MESH, BM_FACES_OF_MESH};
+ const char iter_types[3] = {BM_VERTS_OF_MESH,
+ BM_EDGES_OF_MESH,
+ BM_FACES_OF_MESH};
int *tots[3];
int i;
tots[2] = &bm->totfacesel;
for (i = 0; i < 3; i++) {
- ele = BMIter_New(&iter, bm, itypes[i], NULL);
+ ele = BMIter_New(&iter, bm, iter_types[i], NULL);
for ( ; ele; ele = BMIter_Step(&iter)) {
if (BM_TestHFlag(ele, BM_SELECT)) *tots[i] += 1;
}
void BM_clear_flag_all(BMesh *bm, const char hflag)
{
- const char itypes[3] = {BM_VERTS_OF_MESH, BM_EDGES_OF_MESH, BM_FACES_OF_MESH};
+ const char iter_types[3] = {BM_VERTS_OF_MESH,
+ BM_EDGES_OF_MESH,
+ BM_FACES_OF_MESH};
BMIter iter;
BMHeader *ele;
int i;
}
for (i = 0; i < 3; i++) {
- ele = BMIter_New(&iter, bm, itypes[i], NULL);
+ ele = BMIter_New(&iter, bm, iter_types[i], NULL);
for ( ; ele; ele = BMIter_Step(&iter)) {
if (hflag & BM_SELECT) BM_Select(bm, ele, FALSE);
BM_ClearHFlag(ele, hflag);