fixes in highlight code
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <Base/Placement.h>
|
||||
|
||||
#include "Item.h"
|
||||
#include "ItemPy.h"
|
||||
|
||||
|
||||
using namespace Assembly;
|
||||
@@ -62,4 +63,13 @@ App::DocumentObjectExecReturn *Item::execute(void)
|
||||
return App::DocumentObject::StdReturn;
|
||||
}
|
||||
|
||||
PyObject *Item::getPyObject(void)
|
||||
{
|
||||
if (PythonObject.is(Py::_None())){
|
||||
// ref counter is set to 1
|
||||
PythonObject = Py::Object(new ItemPy(this),true);
|
||||
}
|
||||
return Py::new_reference_to(PythonObject);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user