Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp')
-rw-r--r--source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
index 13dd6e98343..1e5598ddd1c 100644
--- a/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
+++ b/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
@@ -109,7 +109,8 @@ static PyObject * Interface0DIterator_iternext(BPy_Interface0DIterator *self)
}
self->if0D_it->decrement();
if0D = self->if0D_it->operator->();
- } else {
+ }
+ else {
if (self->if0D_it->isEnd()) {
PyErr_SetNone(PyExc_StopIteration);
return NULL;
@@ -120,10 +121,6 @@ static PyObject * Interface0DIterator_iternext(BPy_Interface0DIterator *self)
return Any_BPy_Interface0D_from_Interface0D(*if0D);
}
-static PyMethodDef BPy_Interface0DIterator_methods[] = {
- {NULL, NULL, 0, NULL}
-};
-
/*----------------------Interface0DIterator get/setters ----------------------------*/
PyDoc_STRVAR(Interface0DIterator_object_doc,
@@ -193,7 +190,7 @@ PyTypeObject Interface0DIterator_Type = {
0, /* tp_weaklistoffset */
PyObject_SelfIter, /* tp_iter */
(iternextfunc)Interface0DIterator_iternext, /* tp_iternext */
- BPy_Interface0DIterator_methods, /* tp_methods */
+ 0, /* tp_methods */
0, /* tp_members */
BPy_Interface0DIterator_getseters, /* tp_getset */
&Iterator_Type, /* tp_base */