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:
authorMaxime Curioni <maxime.curioni@gmail.com>2008-07-27 00:05:55 +0400
committerMaxime Curioni <maxime.curioni@gmail.com>2008-07-27 00:05:55 +0400
commit5718639a79b51241f348eb241d2379ade06cd787 (patch)
tree068d394ac7ae8927a6e7ad90c9248d89a4b8f25d /source/blender/freestyle/intern/python/BPy_Iterator.cpp
parent13364bf2085097a8183c65242b3aba8f7d5c163b (diff)
soc-2008-mxcurioni: implemented (but did not test) ChainPredicateIterator and ChainSilhouetteIterator
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Iterator.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_Iterator.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Iterator.cpp b/source/blender/freestyle/intern/python/BPy_Iterator.cpp
index f3612b1bd52..b946e0a9a9a 100644
--- a/source/blender/freestyle/intern/python/BPy_Iterator.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Iterator.cpp
@@ -9,8 +9,8 @@
#include "Iterator/BPy_orientedViewEdgeIterator.h"
#include "Iterator/BPy_ViewEdgeIterator.h"
#include "Iterator/BPy_ChainingIterator.h"
-// #include "Iterator/BPy_ChainPredicateIterator.h"
-// #include "Iterator/BPy_ChainSilhouetteIterator.h"
+#include "Iterator/BPy_ChainPredicateIterator.h"
+#include "Iterator/BPy_ChainSilhouetteIterator.h"
@@ -176,15 +176,15 @@ PyMODINIT_FUNC Iterator_Init( PyObject *module )
Py_INCREF( &ChainingIterator_Type );
PyModule_AddObject(module, "ChainingIterator", (PyObject *)&ChainingIterator_Type);
- // if( PyType_Ready( &ChainPredicateIterator_Type ) < 0 )
- // return;
- // Py_INCREF( &ChainPredicateIterator_Type );
- // PyModule_AddObject(module, "ChainPredicateIterator", (PyObject *)&ChainPredicateIterator_Type);
- //
- // if( PyType_Ready( &ChainSilhouetteIterator_Type ) < 0 )
- // return;
- // Py_INCREF( &ChainSilhouetteIterator_Type );
- // PyModule_AddObject(module, "ChainSilhouetteIterator", (PyObject *)&ChainSilhouetteIterator_Type);
+ if( PyType_Ready( &ChainPredicateIterator_Type ) < 0 )
+ return;
+ Py_INCREF( &ChainPredicateIterator_Type );
+ PyModule_AddObject(module, "ChainPredicateIterator", (PyObject *)&ChainPredicateIterator_Type);
+
+ if( PyType_Ready( &ChainSilhouetteIterator_Type ) < 0 )
+ return;
+ Py_INCREF( &ChainSilhouetteIterator_Type );
+ PyModule_AddObject(module, "ChainSilhouetteIterator", (PyObject *)&ChainSilhouetteIterator_Type);
}