Blender Git Commit Log
Git Commits -> Revision 3d3b647
Revision 3d3b647 by Campbell Barton (master) September 22, 2006, 10:08 (GMT) |
Mesh iterators (me.faces, me.edges, me.verts, face and edge iterator) store the iterator progress in the python object. This made nested loops with the same python object mess up. eg- faces= me.faces for f1 in faces: for f2 in faces: print f1.index,f2.index This didnt work, fixed by initializing the iter value at -1, so any greater value will create a new BPyObject with its own iter value. once iteration is finished, its set back to -1. Also made face and edges iter value a char instead of an int to save some memory. |
Commit Details:
Full Hash: 3d3b64768db193d1f8234b14bc089e8508d89d16
SVN Revision: 8524
Parent Commit: d82f1f5
Lines Changed: +104, -29