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_Convert.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_Convert.cpp')
-rw-r--r--source/blender/freestyle/intern/python/BPy_Convert.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/freestyle/intern/python/BPy_Convert.cpp b/source/blender/freestyle/intern/python/BPy_Convert.cpp
index 1edc4cf1e16..4d66b46420a 100644
--- a/source/blender/freestyle/intern/python/BPy_Convert.cpp
+++ b/source/blender/freestyle/intern/python/BPy_Convert.cpp
@@ -1,6 +1,7 @@
#include "BPy_Convert.h"
#include "BPy_BBox.h"
+#include "BPy_FrsMaterial.h"
#include "BPy_Id.h"
#include "BPy_IntegrationType.h"
#include "BPy_Interface0D.h"
@@ -181,6 +182,12 @@ PyObject * BPy_StrokeVertexIterator_from_StrokeVertexIterator( StrokeInternal::S
return py_sv_it;
}
+PyObject * BPy_FrsMaterial_from_Material( Material& m ){
+ PyObject *py_m = FrsMaterial_Type.tp_new( &FrsMaterial_Type, 0, 0 );
+ ((BPy_FrsMaterial*) py_m)->m = new Material( m );
+
+ return py_m;
+}
///////////////////////////////////////////////////////////////////////////////////////////