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/stroke/ChainingIterators.h')
-rwxr-xr-xsource/blender/freestyle/intern/stroke/ChainingIterators.h22
1 files changed, 2 insertions, 20 deletions
diff --git a/source/blender/freestyle/intern/stroke/ChainingIterators.h b/source/blender/freestyle/intern/stroke/ChainingIterators.h
index fb04be93b4d..ec093888aea 100755
--- a/source/blender/freestyle/intern/stroke/ChainingIterators.h
+++ b/source/blender/freestyle/intern/stroke/ChainingIterators.h
@@ -186,16 +186,7 @@ public:
* might want to keep.
*/
virtual int init() {
- string name( py_c_it ? PyString_AsString(PyObject_CallMethod(py_c_it, "getExactTypeName", "")) : getExactTypeName() );
-
- if( py_c_it && PyObject_HasAttrString(py_c_it, "init") ) {
- if (Director_BPy_ChainingIterator_init( py_c_it ) < 0) {
- return -1;
- }
- } else {
- cerr << "Warning: " << name << " init() method not implemented" << endl;
- }
- return 0;
+ return Director_BPy_ChainingIterator_init( this );
}
/*! This method iterates over the potential next
@@ -210,16 +201,7 @@ public:
* rules by only iterating over the valid ViewEdges.
*/
virtual int traverse(const AdjacencyIterator &it){
- string name( py_c_it ? PyString_AsString(PyObject_CallMethod(py_c_it, "getExactTypeName", "")) : getExactTypeName() );
-
- if( py_c_it && PyObject_HasAttrString(py_c_it, "traverse") ) {
- if (Director_BPy_ChainingIterator_traverse(py_c_it, const_cast<AdjacencyIterator &>(it), &result ) < 0) {
- return -1;
- }
- } else {
- cerr << "Warning: the " << name << " traverse() method not defined" << endl;
- }
- return 0;
+ return Director_BPy_ChainingIterator_traverse( this, const_cast<AdjacencyIterator &>(it) );
}
/* accessors */