Cleanup: remove redundant calls to BMO_error_clear
This commit is contained in:
parent
aaa8ee1307
commit
96d487b3ae
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue