diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-02-24 17:50:36 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-02-24 17:50:36 +0400 |
commit | aca448f0b678eb1f96eeb5c27b4522961f977782 (patch) | |
tree | c509709467e3a51f5d30e03e45f30da78f43eeb6 /source | |
parent | 3151ff825ba719ec0afee2ac3d9bb7e42540c99b (diff) |
bmesh py api - fix for error creating a new face
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types.c b/source/blender/python/bmesh/bmesh_py_types.c index 107a5a71c97..aeccdc6ebbc 100644 --- a/source/blender/python/bmesh/bmesh_py_types.c +++ b/source/blender/python/bmesh/bmesh_py_types.c @@ -382,7 +382,7 @@ static PyObject *bpy_bmedge_is_boundary_get(BPy_BMEdge *self) * ^^^^ */ PyDoc_STRVAR(bpy_bmface_normal_doc, -"The normal for this face as a 3D, wrapped vector.\n\n:type: boolean" +"The normal for this face as a 3D, wrapped vector.\n\n:type: :class:`mathutils.Vector`" ); static PyObject *bpy_bmface_normal_get(BPy_BMFace *self) { @@ -1059,7 +1059,7 @@ static PyObject *bpy_bmfaceseq_new(BPy_BMElemSeq *self, PyObject *args) else { BMesh *bm = self->bm; Py_ssize_t vert_seq_len; - Py_ssize_t i, i_prev; + Py_ssize_t i, i_next; BMVert **vert_array = NULL; BMEdge **edge_array = NULL; @@ -1089,8 +1089,8 @@ static PyObject *bpy_bmfaceseq_new(BPy_BMElemSeq *self, PyObject *args) edge_array = (BMEdge **)PyMem_MALLOC(vert_seq_len * sizeof(BMEdge **)); /* ensure edges */ - for (i = 0, i_prev = vert_seq_len - 1; i < vert_seq_len; (i_prev=i++)) { - edge_array[i] = BM_edge_create(bm, vert_array[i], vert_array[i_prev], NULL, TRUE); + for (i_next = 0, i = vert_seq_len - 1; i_next < vert_seq_len; (i=i_next++)) { + edge_array[i] = BM_edge_create(bm, vert_array[i], vert_array[i_next], NULL, TRUE); } f_new = BM_face_create(bm, vert_array, edge_array, vert_seq_len, FALSE); |