From b216e4d12d8e4e416724d33a9a4c017d2809e5d0 Mon Sep 17 00:00:00 2001 From: Maxime Curioni Date: Sat, 26 Jul 2008 02:33:21 +0000 Subject: soc-2008-mxcurioni: implemented (but did not test) the following classes: Material, Chain, FEdgeSharp, FEdgeSmooth. All Interface1D classes have now been fully implemented. --- .../freestyle/intern/python/BPy_Interface1D.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'source/blender/freestyle/intern/python/BPy_Interface1D.cpp') diff --git a/source/blender/freestyle/intern/python/BPy_Interface1D.cpp b/source/blender/freestyle/intern/python/BPy_Interface1D.cpp index 5166fca4aef..509dfb23894 100644 --- a/source/blender/freestyle/intern/python/BPy_Interface1D.cpp +++ b/source/blender/freestyle/intern/python/BPy_Interface1D.cpp @@ -2,9 +2,13 @@ #include "BPy_Convert.h" #include "Interface1D/BPy_Curve.h" +#include "Interface1D/Curve/BPy_Chain.h" #include "Interface1D/BPy_FEdge.h" +#include "Interface1D/FEdge/BPy_FEdgeSharp.h" +#include "Interface1D/FEdge/BPy_FEdgeSmooth.h" #include "Interface1D/BPy_Stroke.h" #include "Interface1D/BPy_ViewEdge.h" + #include "BPy_MediumType.h" #ifdef __cplusplus @@ -142,12 +146,27 @@ PyMODINIT_FUNC Interface1D_Init( PyObject *module ) return; Py_INCREF( &Curve_Type ); PyModule_AddObject(module, "Curve", (PyObject *)&Curve_Type); + + if( PyType_Ready( &Chain_Type ) < 0 ) + return; + Py_INCREF( &Chain_Type ); + PyModule_AddObject(module, "Chain", (PyObject *)&Chain_Type); if( PyType_Ready( &FEdge_Type ) < 0 ) return; Py_INCREF( &FEdge_Type ); PyModule_AddObject(module, "FEdge", (PyObject *)&FEdge_Type); + if( PyType_Ready( &FEdgeSharp_Type ) < 0 ) + return; + Py_INCREF( &FEdgeSharp_Type ); + PyModule_AddObject(module, "FEdgeSharp", (PyObject *)&FEdgeSharp_Type); + + if( PyType_Ready( &FEdgeSmooth_Type ) < 0 ) + return; + Py_INCREF( &FEdgeSmooth_Type ); + PyModule_AddObject(module, "FEdgeSmooth", (PyObject *)&FEdgeSmooth_Type); + if( PyType_Ready( &Stroke_Type ) < 0 ) return; Py_INCREF( &Stroke_Type ); -- cgit v1.2.3