[Bf-committers] request for code review - Freestyle pilot Python API updates

Campbell Barton ideasman42 at gmail.com
Mon Jan 7 04:14:49 CET 2013


Regarding the mathutils wrapping, I'd suggest not having BPy_VectorProxy at all.

Best remove 'BPy_VectorProxy' and return a mathutils.Vector that
points directly to BPy_StrokeVertex object and has Mathutils_Callback
struct defined that knows how to read/write the BPy_StrokeVertex
values.
If you need to wrap a different vector type, defining a new
Mathutils_Callback struct is no problem.

Otherwise LGTM from the python API side.

-- 
- Campbell


More information about the Bf-committers mailing list