operators called from python were not getting their reports back into python errors.

eg:
- console calls operator
- operator calls report
- report went into header rather them back into the console as an error.
This commit is contained in:
2011-03-22 02:38:39 +00:00
parent a503713d6c
commit 2299d674f4
3 changed files with 5 additions and 3 deletions

View File

@@ -195,7 +195,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
ReportList *reports;
reports= MEM_mallocN(sizeof(ReportList), "wmOperatorReportList");
BKE_reports_init(reports, RPT_STORE);
BKE_reports_init(reports, RPT_STORE | RPT_OP_HOLD); /* own so these dont move into global reports */
operator_ret= WM_operator_call_py(C, ot, context, &ptr, reports);