diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-03 21:24:44 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-03 21:24:44 +0300 |
commit | 5760c6b25cc4e014868ff67f2c357ea38e40eafa (patch) | |
tree | a5e565785fedff08ef05c0ff7761b3fa2e6d63e3 /source/blender | |
parent | 2cdbbfcc5a0f94fb841334edab3e22d7e3b42fab (diff) | |
parent | 0f217de4033f25d55e73d6aa8ab1020fed3f850c (diff) |
Merge branch 'master' into blender2.8
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/python/bmesh/bmesh_py_types_select.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/python/bmesh/bmesh_py_types_select.c b/source/blender/python/bmesh/bmesh_py_types_select.c index b5a480c05b5..03d295c8ca1 100644 --- a/source/blender/python/bmesh/bmesh_py_types_select.c +++ b/source/blender/python/bmesh/bmesh_py_types_select.c @@ -245,14 +245,13 @@ static PyObject *bpy_bmeditselseq_subscript_slice(BPy_BMEditSelSeq *self, Py_ssi } /* add items until stop */ - while ((ese = ese->next)) { + do { PyList_APPEND(list, BPy_BMElem_CreatePyObject(self->bm, &ese->ele->head)); - count++; if (count == stop) { break; } - } + } while ((ese = ese->next)); return list; } |