diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-10-01 15:12:49 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-10-01 15:12:49 +0400 |
commit | c9c76a9a68ff9f0c32c6a1f77d386349ca5abaca (patch) | |
tree | df7bfc03f8374e291f9f47d7d8e407cd40116e5c /source/blender/python | |
parent | b6bf0e49527d174c51e8644f05569c6618d32604 (diff) |
add compiler hints that failing to create a bmesh face is unlikely.
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c index fefccceeb6e..fd5fa63647b 100644 --- a/source/blender/python/bmesh/bmesh_py_types.c +++ b/source/blender/python/bmesh/bmesh_py_types.c @@ -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; |