Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/BPy_Iterator.cpp
| Context not available. | |||||
| static PyObject *Iterator_increment(BPy_Iterator *self) | static PyObject *Iterator_increment(BPy_Iterator *self) | ||||
| { | { | ||||
| if (self->it->isEnd()) { | if (self->it->isEnd()) { | ||||
| PyErr_SetString(PyExc_RuntimeError, "cannot increment any more"); | PyErr_SetString(PyExc_StopIteration, "cannot increment any more"); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| self->it->increment(); | self->it->increment(); | ||||
| Context not available. | |||||
| static PyObject *Iterator_decrement(BPy_Iterator *self) | static PyObject *Iterator_decrement(BPy_Iterator *self) | ||||
| { | { | ||||
| if (self->it->isBegin()) { | if (self->it->isBegin()) { | ||||
| PyErr_SetString(PyExc_RuntimeError, "cannot decrement any more"); | PyErr_SetString(PyExc_StopIteration, "cannot decrement any more"); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| self->it->decrement(); | self->it->decrement(); | ||||
| Context not available. | |||||