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_ChainingIterator.cpp')
-rw-r--r--source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp
index 370ef23d8ef..b2042107453 100644
--- a/source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp
+++ b/source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp
@@ -73,8 +73,9 @@ PyDoc_STRVAR(
static int check_begin(PyObject *obj, void *v)
{
- if (obj != NULL && obj != Py_None && !BPy_ViewEdge_Check(obj))
+ if (obj != NULL && obj != Py_None && !BPy_ViewEdge_Check(obj)) {
return 0;
+ }
*((PyObject **)v) = obj;
return 1;
}
@@ -166,10 +167,12 @@ static PyObject *ChainingIterator_traverse(BPy_ChainingIterator *self,
return NULL;
}
if (!PyArg_ParseTupleAndKeywords(
- args, kwds, "O!", (char **)kwlist, &AdjacencyIterator_Type, &py_a_it))
+ args, kwds, "O!", (char **)kwlist, &AdjacencyIterator_Type, &py_a_it)) {
return NULL;
- if (((BPy_AdjacencyIterator *)py_a_it)->a_it)
+ }
+ if (((BPy_AdjacencyIterator *)py_a_it)->a_it) {
self->c_it->traverse(*(((BPy_AdjacencyIterator *)py_a_it)->a_it));
+ }
Py_RETURN_NONE;
}
@@ -196,8 +199,9 @@ static PyObject *ChainingIterator_object_get(BPy_ChainingIterator *self, void *U
return NULL;
}
ViewEdge *ve = self->c_it->operator*();
- if (ve)
+ if (ve) {
return BPy_ViewEdge_from_ViewEdge(*ve);
+ }
Py_RETURN_NONE;
}
@@ -211,8 +215,9 @@ static PyObject *ChainingIterator_next_vertex_get(BPy_ChainingIterator *self,
void *UNUSED(closure))
{
ViewVertex *v = self->c_it->getVertex();
- if (v)
+ if (v) {
return Any_BPy_ViewVertex_from_ViewVertex(*v);
+ }
Py_RETURN_NONE;
}