Blender Git Loki
Git Commits -> Revision fec3dda
Revision fec3dda by Tamito Kajiyama (master) July 25, 2009, 11:27 (GMT) |
* Better support for vector-like objects in method arguments. Now the following methods in the Freestyle Python API accept not only Blender.Mathutils.Vector instances but also lists and tuples having an appropriate number of elements. FrsNoise::turbulence2() FrsNoise::turbulence3() FrsNoise::smoothNoise2() FrsNoise::smoothNoise3() SVertex::__init__() SVertex::setPoint3D() SVertex::setPoint2D() SVertex::AddNormal() FEdgeSharp::setNormalA() FEdgeSharp::setNormalB() FEdgeSmooth::setNormal() CalligraphicShader::__init__() StrokeAttribute::setAttributeVec2f() StrokeAttribute::setAttributeVec3f() StrokeAttribute::setColor() StrokeVertex::setPoint() * Added the following converters for the sake of the improvements mentioned above. Vec2f_ptr_from_PyObject() Vec3f_ptr_from_PyObject() Vec3r_ptr_from_PyObject() Vec2f_ptr_from_PyList() Vec3f_ptr_from_PyList() Vec3r_ptr_from_PyList() Vec2f_ptr_from_PyTuple() Vec3f_ptr_from_PyTuple() Vec3r_ptr_from_PyTuple() Those converters with the suffixes _PyList and _PyTuple accept only lists and tuples having an appropriate number of elements, respectively, while those with the suffix _PyObject accept lists, tuples, or Blender.Mathutils.Vector instances. * Fixed a null pointer reference in Interface0D___dealloc__(). * Corrected the names of 3 methods in the FEdgeSmooth class. |
Commit Details:
Full Hash: fec3ddabb1d75ee6a3a28589813f2acc85215e18
SVN Revision: 21877
Parent Commit: d7bce7e
Lines Changed: +218, -176
10 Modified Paths:
/source/blender/freestyle/intern/python/BPy_Convert.cpp (+85, -0) (Diff)
/source/blender/freestyle/intern/python/BPy_Convert.h (+9, -0) (Diff)
/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp (+29, -40) (Diff)
/source/blender/freestyle/intern/python/BPy_Interface0D.cpp (+1, -2) (Diff)
/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp (+29, -35) (Diff)
/source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp (+33, -39) (Diff)
/source/blender/freestyle/intern/python/Interface0D/CurvePoint/BPy_StrokeVertex.cpp (+5, -17) (Diff)
/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSharp.cpp (+12, -22) (Diff)
/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSmooth.cpp (+9, -14) (Diff)
/source/blender/freestyle/intern/python/StrokeShader/BPy_CalligraphicShader.cpp (+6, -7) (Diff)
/source/blender/freestyle/intern/python/BPy_Convert.h (+9, -0) (Diff)
/source/blender/freestyle/intern/python/BPy_FrsNoise.cpp (+29, -40) (Diff)
/source/blender/freestyle/intern/python/BPy_Interface0D.cpp (+1, -2) (Diff)
/source/blender/freestyle/intern/python/BPy_StrokeAttribute.cpp (+29, -35) (Diff)
/source/blender/freestyle/intern/python/Interface0D/BPy_SVertex.cpp (+33, -39) (Diff)
/source/blender/freestyle/intern/python/Interface0D/CurvePoint/BPy_StrokeVertex.cpp (+5, -17) (Diff)
/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSharp.cpp (+12, -22) (Diff)
/source/blender/freestyle/intern/python/Interface1D/FEdge/BPy_FEdgeSmooth.cpp (+9, -14) (Diff)
/source/blender/freestyle/intern/python/StrokeShader/BPy_CalligraphicShader.cpp (+6, -7) (Diff)