add compiler hints that failing to create a bmesh face is unlikely.

This commit is contained in:
2012-10-01 11:12:49 +00:00
parent b6bf0e4952
commit c9c76a9a68
9 changed files with 15 additions and 11 deletions

View File

@@ -1808,7 +1808,7 @@ static PyObject *bpy_bmfaceseq_new(BPy_BMElemSeq *self, PyObject *args)
f_new = BM_face_create(bm, vert_array, edge_array, vert_seq_len, FALSE);
if (f_new == NULL) {
if (UNLIKELY(f_new == NULL)) {
PyErr_SetString(PyExc_ValueError,
"faces.new(verts): couldn't create the new face, internal error");
goto cleanup;