diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-07-29 04:18:13 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2009-07-29 04:18:13 +0400 |
commit | 76000379241e781c801040082dbe14e1784cddc6 (patch) | |
tree | a3c73e839cdf78f785f124018b5a93daab280278 /source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp | |
parent | 8eb1064f4166cc939e2216e560a8e0f0a1ce76ce (diff) |
Added changes to the AdjacencyIterator type to support Python's
iterator protocol. Now the following code in the conventional
SWIG-based syntax:
it = AdjacencyIterator(iter)
while not it.isEnd():
ve = it.getObject()
...
it.increment()
can be written using the iterator protocol as follows:
for ve in AdjacencyIterator(iter):
...
Diffstat (limited to 'source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp')
0 files changed, 0 insertions, 0 deletions