Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-05-03 21:23:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-05-03 21:23:32 +0300
commit0f217de4033f25d55e73d6aa8ab1020fed3f850c (patch)
tree04292ebb66d288e32536d0a859843eb14700dd2d /source/blender/python/bmesh/bmesh_py_types_select.c
parent38b6f8e1437348041cf7b0071bb5dc262fa27d9e (diff)
Fix T54927: BMesh Py error w/ select history slice
Diffstat (limited to 'source/blender/python/bmesh/bmesh_py_types_select.c')
-rw-r--r--source/blender/python/bmesh/bmesh_py_types_select.c5
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;
}