Blender Git Commit Log

Git Commits -> Revision 17555ef

Revision 17555ef by Tamito Kajiyama (master)
December 1, 2008, 11:14 (GMT)
Added changes to support Python's native iterator protocol in Stroke and StrokeVertexIterator.

freestyle_init.py
* Added a generic getName() method that allows subclasses to omit the method to return their class names.

BPy_Convert.cpp
BPy_Convert.h
* Added to BPy_StrokeVertexIterator_from_StrokeVertexIterator() a second argument to specify the direction (reversed or not) of the iterator to be created.

BPy_Stroke.cpp
* Added support for Python's native iterator protocol.
* Added code to parse the optional argument of strokeVerticesBegin().

BPy_StrokeVertexIterator.cpp
BPy_StrokeVertexIterator.h
* Added support for Python's native iterator protocol.

Stroke.cpp
* Fixed a null pointer reference.

Stroke.h
* Added new method Stroke::strokeVerticeAt(i) that returns the i-th StrokeVertex of the Stroke.

Commit Details:

Full Hash: 17555efed7583c12459d4f3044dfdd457489ab39
SVN Revision: 17661
Parent Commit: a407b65
Lines Changed: +111, -17

8 Modified Paths:

/release/scripts/freestyle/style_modules/freestyle_init.py (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_Convert.cpp (+2, -1) (Diff)
/source/blender/freestyle/intern/python/BPy_Convert.h (+1, -1) (Diff)
/source/blender/freestyle/intern/python/Interface1D/BPy_Stroke.cpp (+79, -12) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp (+20, -2) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.h (+1, -0) (Diff)
/source/blender/freestyle/intern/stroke/Stroke.cpp (+3, -0) (Diff)
/source/blender/freestyle/intern/stroke/Stroke.h (+3, -0) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021