Fix T48717: Modal operators called from Py omit reports from the UI

This commit is contained in:
Campbell Barton 2016-06-27 17:09:52 +10:00
parent 6021cc4007
commit f1253f5d2b

@ -264,6 +264,11 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
if ((reports->flag & RPT_FREE) == 0) {
MEM_freeN(reports);
}
else {
/* The WM is now responsible for running the modal operator,
* show reports in the info window. */
reports->flag &= ~RPT_OP_HOLD;
}
}
WM_operator_properties_free(&ptr);