bmesh: BM_verts_in_face was using bmesh operator flag which is no longer ensured to be available,

use internal apiflag instead, Thanks to Nicholas Bishop for spotting.

also quiet some warnings.
This commit is contained in:
Campbell Barton
2012-11-19 00:54:55 +00:00
parent eb1fccd8a5
commit cdc4037f0d
11 changed files with 34 additions and 29 deletions

View File

@@ -1790,7 +1790,7 @@ static PyObject *bpy_bmfaceseq_new(BPy_BMElemSeq *self, PyObject *args)
}
/* check if the face exists */
if (BM_face_exists(bm, vert_array, vert_seq_len, NULL)) {
if (BM_face_exists(vert_array, vert_seq_len, NULL)) {
PyErr_SetString(PyExc_ValueError,
"faces.new(verts): face already exists");
goto cleanup;
@@ -2012,7 +2012,7 @@ static PyObject *bpy_bmfaceseq_get__method(BPy_BMElemSeq *self, PyObject *args)
return NULL;
}
if (BM_face_exists(bm, vert_array, vert_seq_len, &f)) {
if (BM_face_exists(vert_array, vert_seq_len, &f)) {
ret = BPy_BMFace_CreatePyObject(bm, f);
}
else {