remove gui dependencies in app
This commit is contained in:
committed by
Stefan Tröger
parent
7a95658cdb
commit
2bd104ad7a
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user