Cleanup: remove redundant calls to BMO_error_clear

This commit is contained in:
Campbell Barton 2021-07-01 17:25:27 +10:00
parent aaa8ee1307
commit 96d487b3ae
3 changed files with 0 additions and 12 deletions

View File

@ -182,12 +182,6 @@ void bmo_dissolve_faces_exec(BMesh *bm, BMOperator *op)
BMO_face_flag_enable(bm, f_iter, FACE_ORIG);
}
if (BMO_error_occurred(bm)) {
BMO_error_clear(bm);
BMO_error_raise(bm, op, "Could not dissolve faces");
goto cleanup;
}
BLI_array_append(faces, NULL);
BLI_array_append(regions, faces);
}

View File

@ -253,9 +253,6 @@ void bmo_triangle_fill_exec(BMesh *bm, BMOperator *op)
BMO_face_flag_enable(bm, f_new, ELE_NEW);
BM_edge_kill(bm, e);
}
else {
BMO_error_clear(bm);
}
}
else if (e->l == NULL) {
BM_edge_kill(bm, e);

View File

@ -376,9 +376,6 @@ void BM_mesh_decimate_dissolve_ex(BMesh *bm,
}
} while ((l_iter = l_iter->next) != l_first);
}
else {
BMO_error_clear(bm);
}
}
if (UNLIKELY(f_new == NULL)) {