bmesh api cleanup, face creation args now accept an example face (as with vertex and edge),

also replace BM_face_create_quad_tri_v with BM_face_create_verts
This commit is contained in:
2013-08-21 07:51:47 +00:00
parent 785a67f396
commit 9470754fd3
24 changed files with 85 additions and 144 deletions

View File

@@ -2020,7 +2020,8 @@ static PyObject *bpy_bmfaceseq_new(BPy_BMElemSeq *self, PyObject *args)
/* Go ahead and make the face!
* --------------------------- */
f_new = BM_face_create_verts(bm, vert_array, vert_seq_len, BM_CREATE_NOP, true);
f_new = BM_face_create_verts(bm, vert_array, vert_seq_len,
py_face_example ? py_face_example->f : NULL, BM_CREATE_NOP, true);
if (UNLIKELY(f_new == NULL)) {
PyErr_SetString(PyExc_ValueError,
@@ -2028,10 +2029,6 @@ static PyObject *bpy_bmfaceseq_new(BPy_BMElemSeq *self, PyObject *args)
goto cleanup;
}
if (py_face_example) {
BM_elem_attrs_copy(py_face_example->bm, bm, py_face_example->f, f_new);
}
ret = BPy_BMFace_CreatePyObject(bm, f_new);
/* pass through */