Fix T54927: BMesh Py error w/ select history slice

This commit is contained in:
2018-05-03 20:23:32 +02:00
parent 38b6f8e143
commit 0f217de403

View File

@@ -245,14 +245,13 @@ static PyObject *bpy_bmeditselseq_subscript_slice(BPy_BMEditSelSeq *self, Py_ssi
} }
/* add items until stop */ /* add items until stop */
while ((ese = ese->next)) { do {
PyList_APPEND(list, BPy_BMElem_CreatePyObject(self->bm, &ese->ele->head)); PyList_APPEND(list, BPy_BMElem_CreatePyObject(self->bm, &ese->ele->head));
count++; count++;
if (count == stop) { if (count == stop) {
break; break;
} }
} } while ((ese = ese->next));
return list; return list;
} }