Preserve True/Projected state on save/restore

This commit is contained in:
WandererFan
2016-05-28 19:19:54 +12:00
committed by wmayer
parent 6d518a2517
commit 621d570026
11 changed files with 101 additions and 81 deletions

View File

@@ -84,6 +84,19 @@ PyObject* MeasurementPy::addReference3D(PyObject *args)
Py_Return;
}
PyObject* MeasurementPy::has3DReferences(PyObject *args)
{
PyObject *result=Py_False;
if (!PyArg_ParseTuple(args, ""))
return 0;
if (getMeasurementPtr()->has3DReferences()) {
result = Py_True;
}
return result;
}
PyObject* MeasurementPy::clear(PyObject *)
{
this->getMeasurementPtr()->clear();