Blender Git Loki

Git Commits -> Revision b35a893

Revision b35a893 by Tamito Kajiyama (master)
February 16, 2013, 14:21 (GMT)
Freestyle Python API improvements - part 4.

Major API updates were made as in part 3 to address code review comments.
This revision focuses on Python wrappers of C++ iterators.

* Most getter/setter methods were reimplemented as attributes using PyGetSetDef.

* The naming of methods and attributes was fixed to follow the naming conventions
of the Blender Python API (i.e., lower case + underscores for methods and attributes,
and CamelCase for classes). The only irregular naming change is the following, to
better indicate the functionality:

- ChainingIterator: getVertex --> next_vertex

* In addition, some code clean-up was done in both C++ and Python. Also duplicated
definitions of predicate classes were removed.

Commit Details:

Full Hash: b35a893249bed1a70f40b86615531d7d75fe12f3
SVN Revision: 54592
Parent Commit: aa9c01f
Lines Changed: +939, -1012

17 Modified Paths:

/release/scripts/freestyle/style_modules/ChainingIterators.py (+146, -151) (Diff)
/release/scripts/freestyle/style_modules/Functions0D.py (+4, -4) (Diff)
/release/scripts/freestyle/style_modules/parameter_editor.py (+60, -60) (Diff)
/release/scripts/freestyle/style_modules/PredicatesU0D.py (+6, -9) (Diff)
/release/scripts/freestyle/style_modules/PredicatesU1D.py (+9, -9) (Diff)
/release/scripts/freestyle/style_modules/sequentialsplit_sketchy.py (+0, -18) (Diff)
/release/scripts/freestyle/style_modules/shaders.py (+152, -152) (Diff)
/release/scripts/freestyle/style_modules/uniformpruning_zsort.py (+0, -18) (Diff)
/source/blender/freestyle/intern/python/BPy_Iterator.cpp (+77, -82) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_AdjacencyIterator.cpp (+48, -49) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_ChainingIterator.cpp (+77, -76) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_CurvePointIterator.cpp (+59, -59) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_Interface0DIterator.cpp (+44, -43) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_orientedViewEdgeIterator.cpp (+36, -29) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_StrokeVertexIterator.cpp (+65, -62) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_SVertexIterator.cpp (+58, -59) (Diff)
/source/blender/freestyle/intern/python/Iterator/BPy_ViewEdgeIterator.cpp (+98, -132) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021