Blender Git Commit Log

Git Commits -> Revision 7600037

Revision 7600037 by Tamito Kajiyama (master)
July 29, 2009, 00:18 (GMT)
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):
...

Commit Details:

Full Hash: 76000379241e781c801040082dbe14e1784cddc6
SVN Revision: 22003
Parent Commit: 8eb1064
Lines Changed: +13, -2

1 Modified Path:

/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp (+13, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021