Differential D623 Diff 2046 source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp
Changeset View
Changeset View
Standalone View
Standalone View
source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp
| Context not available. | |||||
| static PyObject *CurvePointIterator_object_get(BPy_CurvePointIterator *self, void *UNUSED(closure)) | static PyObject *CurvePointIterator_object_get(BPy_CurvePointIterator *self, void *UNUSED(closure)) | ||||
| { | { | ||||
| if (self->cp_it->isEnd()) { | if (self->cp_it->isEnd()) { | ||||
| PyErr_SetString(PyExc_RuntimeError, "iteration has stopped"); | PyErr_SetString(PyExc_StopIteration, "Iterator is at its end"); | ||||
| return NULL; | return NULL; | ||||
| } | } | ||||
| return BPy_CurvePoint_from_CurvePoint(self->cp_it->operator*()); | return BPy_CurvePoint_from_CurvePoint(self->cp_it->operator*()); | ||||
| Context not available. | |||||