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/Director.cpp')
-rw-r--r--source/blender/freestyle/intern/python/Director.cpp23
1 files changed, 22 insertions, 1 deletions
diff --git a/source/blender/freestyle/intern/python/Director.cpp b/source/blender/freestyle/intern/python/Director.cpp
index d3aff4a65f2..42677919ca5 100644
--- a/source/blender/freestyle/intern/python/Director.cpp
+++ b/source/blender/freestyle/intern/python/Director.cpp
@@ -61,7 +61,6 @@ ViewEdge * Director_BPy_ChainingIterator_traverse( PyObject *obj, AdjacencyItera
return ((BPy_ViewEdge *) result)->ve;
}
-
// BPy_UnaryFunction{0D,1D}: __call__
// BPy_UnaryFunction0DDouble
// BPy_UnaryFunction0DEdgeNature
@@ -83,4 +82,26 @@ ViewEdge * Director_BPy_ChainingIterator_traverse( PyObject *obj, AdjacencyItera
// BPy_UnaryFunction1DVectorViewShape
// BPy_UnaryFunction1DVoid
+// BPy_Iterator: increment, decrement, isBegin, isEnd
+void Director_BPy_Iterator_increment( PyObject *obj ) {
+ PyObject_CallMethod( obj, "increment", "", 0 );
+}
+
+void Director_BPy_Iterator_decrement( PyObject *obj ) {
+ PyObject_CallMethod( obj, "decrement", "", 0 );
+}
+
+bool Director_BPy_Iterator_isBegin( PyObject *obj ) {
+ PyObject *result = PyObject_CallMethod( obj, "isBegin", "", 0 );
+
+ return bool_from_PyBool(result);
+}
+
+bool Director_BPy_Iterator_isEnd( PyObject *obj ) {
+ PyObject *result = PyObject_CallMethod( obj, "isEnd", "", 0 );
+
+ return bool_from_PyBool(result);
+}
+
+