fixes 0003410: 0.17 Regression: recompute will make parts lose color and take a longer delay compared to FC0.16

This commit is contained in:
wmayer
2018-10-02 19:03:48 +02:00
parent b97b9f78e7
commit 7bf4c9d96f
10 changed files with 112 additions and 35 deletions

View File

@@ -146,6 +146,14 @@ PyObject* DocumentObjectPy::purgeTouched(PyObject * args)
Py_Return;
}
PyObject* DocumentObjectPy::enforceRecompute(PyObject * args)
{
if (!PyArg_ParseTuple(args, "")) // convert args: Python->C
return NULL; // NULL triggers exception
getDocumentObjectPtr()->enforceRecompute();
Py_Return;
}
Py::List DocumentObjectPy::getState(void) const
{
DocumentObject* object = this->getDocumentObjectPtr();