Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Curioni <maxime.curioni@gmail.com>2008-07-26 06:33:21 +0400
committerMaxime Curioni <maxime.curioni@gmail.com>2008-07-26 06:33:21 +0400
commitb216e4d12d8e4e416724d33a9a4c017d2809e5d0 (patch)
tree55585a6ebed6d1acde03150a4b62c27ca053f37f /source/blender/freestyle/intern/python/BPy_Interface1D.cpp
parent51f9082c964fda6ba90aa5b503a06f22c5a9ee60 (diff)
soc-2008-mxcurioni: implemented (but did not test) the following classes: Material, Chain, FEdgeSharp, FEdgeSmooth. All Interface1D classes have now been fully implemented.
Diffstat (limited to 'source/blender/freestyle/intern/python/BPy_Interface1D.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_Interface1D.cpp19
1 files changed, 19 insertions, 0 deletions
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 );