Fix T48717: Modal operators called from Py omit reports from the UI
This commit is contained in:
@@ -264,6 +264,11 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
|
|||||||
if ((reports->flag & RPT_FREE) == 0) {
|
if ((reports->flag & RPT_FREE) == 0) {
|
||||||
MEM_freeN(reports);
|
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);
|
WM_operator_properties_free(&ptr);
|
||||||
|
|||||||
Reference in New Issue
Block a user