Differential D623 Diff 2046 source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp
| Context not available. | |||||
| static PyObject *StrokeVertexIterator_incremented(BPy_StrokeVertexIterator *self) | static PyObject *StrokeVertexIterator_incremented(BPy_StrokeVertexIterator *self) | ||||
| { | { | ||||
| if (self->sv_it->isEnd()) { | if (self->sv_it->isEnd()) { | ||||
| PyErr_SetString(PyExc_RuntimeError, "cannot increment any more"); | PyErr_SetString(PyExc_StopIteration, "cannot increment any more"); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| StrokeInternal::StrokeVertexIterator *copy = new StrokeInternal::StrokeVertexIterator(*self->sv_it); | StrokeInternal::StrokeVertexIterator *copy = new StrokeInternal::StrokeVertexIterator(*self->sv_it); | ||||
| Context not available. | |||||
| static PyObject *StrokeVertexIterator_decremented(BPy_StrokeVertexIterator *self) | static PyObject *StrokeVertexIterator_decremented(BPy_StrokeVertexIterator *self) | ||||
| { | { | ||||
| if (self->sv_it->isBegin()) { | if (self->sv_it->isBegin()) { | ||||
| PyErr_SetString(PyExc_RuntimeError, "cannot decrement any more"); | PyErr_SetString(PyExc_StopIteration, "cannot decrement any more"); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| Context not available. | |||||
| static PyObject *StrokeVertexIterator_object_get(BPy_StrokeVertexIterator *self, void *UNUSED(closure)) | static PyObject *StrokeVertexIterator_object_get(BPy_StrokeVertexIterator *self, void *UNUSED(closure)) | ||||
| { | { | ||||
| if (self->sv_it->isEnd()) { | if (self->sv_it->isEnd()) { | ||||
| PyErr_SetString(PyExc_RuntimeError, "iteration has stopped"); | PyErr_SetString(PyExc_StopIteration, "Iterator is at its end"); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| StrokeVertex *sv = self->sv_it->operator->(); | StrokeVertex *sv = self->sv_it->operator->(); | ||||
| Context not available. | |||||