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:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2008-12-01 14:14:33 +0300
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2008-12-01 14:14:33 +0300
commit17555efed7583c12459d4f3044dfdd457489ab39 (patch)
tree3cece3831c7cffc68cd40edf0ffb9afb6ea1773d /source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.h
parenta407b65c834486b1ebd534e696460456fa2f210c (diff)
Added changes to support Python's native iterator protocol in Stroke and StrokeVertexIterator.
freestyle_init.py * Added a generic getName() method that allows subclasses to omit the method to return their class names. BPy_Convert.cpp BPy_Convert.h * Added to BPy_StrokeVertexIterator_from_StrokeVertexIterator() a second argument to specify the direction (reversed or not) of the iterator to be created. BPy_Stroke.cpp * Added support for Python's native iterator protocol. * Added code to parse the optional argument of strokeVerticesBegin(). BPy_StrokeVertexIterator.cpp BPy_StrokeVertexIterator.h * Added support for Python's native iterator protocol. Stroke.cpp * Fixed a null pointer reference. Stroke.h * Added new method Stroke::strokeVerticeAt(i) that returns the i-th StrokeVertex of the Stroke.
Diffstat (limited to 'source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.h')
-rw-r--r--source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.h b/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.h
index 9e95fc0a401..0c4b6e4bb6c 100644
--- a/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.h
+++ b/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.h
@@ -21,6 +21,7 @@ extern PyTypeObject StrokeVertexIterator_Type;
typedef struct {
BPy_Iterator py_it;
StrokeInternal::StrokeVertexIterator *sv_it;
+ int reversed;
} BPy_StrokeVertexIterator;
///////////////////////////////////////////////////////////////////////////////////////////