remove gui dependencies in app

This commit is contained in:
Stefan Tröger
2013-05-05 17:40:57 +02:00
committed by Stefan Tröger
parent 7a95658cdb
commit 2bd104ad7a
10 changed files with 506 additions and 19 deletions

View File

@@ -46,6 +46,7 @@
#include <Base/Console.h>
#include "Constraint.h"
#include "ConstraintPy.h"
#include "Item.h"
#include "ItemPart.h"
@@ -109,5 +110,14 @@ void Constraint::init(boost::shared_ptr< Solver > solver) {
};
}
PyObject *Constraint::getPyObject(void)
{
if (PythonObject.is(Py::_None())){
// ref counter is set to 1
PythonObject = Py::Object(new ConstraintPy(this),true);
}
return Py::new_reference_to(PythonObject);
}
}