Blender Git Loki

Git Commits -> Revision a169989

Revision a169989 by Tamito Kajiyama (master)
February 2, 2014, 13:05 (GMT)
Freestyle: Fix for iterations over 0D elements in the reversed order.

The revision is concerned with Interface0DIterator and StrokeVertexIterator.
These iterators can be generated by Interface1D::vertices_end() and
Stroke::stroke_vertices_end(), respectively. These methods return an
iterator poinitng the next index of the last 0D element (i.e., iterator's is_end
property is true). When the iterators created in this way are used with
Python's iterator protocol (e.g., in a for-loop), iterations over 0D elements
are automatically performed in the reversed order. This functionality was
broken after recent revisions concerning Freestyle iterators.

Also made minor code cleanup (white space).

Commit Details:

Full Hash: a16998911b59956806000826c15a941c53bd33c1
Parent Commit: 41d778f
Lines Changed: +4, -29

4 Modified Paths:

/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp (+0, -1) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp (+1, -9) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp (+1, -9) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp (+2, -10) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021