Fix T54927: BMesh Py error w/ select history slice
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user