Blender Git Loki

Git Commits -> Revision f6b4b12

Revision f6b4b12 by Tamito Kajiyama (master)
September 2, 2014, 12:24 (GMT)
Better fix for T41464: Material Boundary bug in Freestyle.

The problem addressed here is that there was no mean to check if an iterator
points the last of the elements being iterated over. Such checking is necessary
to reliably dereference the iterator (i.e., calling the operator*() method of the
underlying C++ iterator object).

Now Interface0DIterator and StrokeVertexIterator have an .at_last property
to check if an iterator points the last element. Using this new API feature,
the present commit partly reverts the previous commit rBeb8964fb7f19 to
better address T41464.

Differential revision: https://developer.blender.org/D752

Author: flokkievids (Folkert de Vries)

Reviewed by: kjym3 (Tamito Kajiyama)

Commit Details:

Full Hash: f6b4b1296125d43e94968709bc52d5f7a062734e
Parent Commit: 0c1ff4b
Lines Changed: +67, -28

5 Modified Paths:

/release/scripts/freestyle/modules/parameter_editor.py (+6, -9) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp (+15, -7) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp (+22, -12) (Diff)
/source/blender/freestyle/intern/stroke/StrokeIterators.h (+12, -0) (Diff)
/source/blender/freestyle/intern/view_map/Interface0D.h (+12, -0) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021