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.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp b/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
index 6218541df9b..13a981920f3 100644
--- a/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
+++ b/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp
@@ -55,12 +55,14 @@ PyDoc_STRVAR(Interface0DIterator_doc,
static int convert_nested_it(PyObject *obj, void *v)
{
- if (!obj || !BPy_Iterator_Check(obj))
+ if (!obj || !BPy_Iterator_Check(obj)) {
return 0;
+ }
Interface0DIteratorNested *nested_it = dynamic_cast<Interface0DIteratorNested *>(
((BPy_Iterator *)obj)->it);
- if (!nested_it)
+ if (!nested_it) {
return 0;
+ }
*((Interface0DIteratorNested **)v) = nested_it;
return 1;
}