+ expose Material class to Python

This commit is contained in:
wmayer
2016-05-07 21:15:01 +02:00
parent e9a46f658e
commit 4d94fbc15f
3 changed files with 52 additions and 0 deletions

View File

@@ -100,6 +100,7 @@
#include "OriginFeature.h"
#include "Origin.h"
#include "MaterialObject.h"
#include "MaterialPy.h"
#include "Expression.h"
// If you stumble here, run the target "BuildExtractRevision" on Windows systems
@@ -233,6 +234,8 @@ Application::Application(std::map<std::string,std::string> &mConfig)
Base::Interpreter().addType(&Base::RotationPy ::Type,pBaseModule,"Rotation");
Base::Interpreter().addType(&Base::AxisPy ::Type,pBaseModule,"Axis");
Base::Interpreter().addType(&App::MaterialPy::Type, pAppModule, "Material");
//insert Base and Console
Py_INCREF(pBaseModule);
PyModule_AddObject(pAppModule, "Base", pBaseModule);