update python api with changes from Joshua's commit r33917. translate reports into python errors.

This commit is contained in:
2010-12-31 05:40:30 +00:00
parent ae51e1c683
commit cdefce51f5
4 changed files with 93 additions and 52 deletions

View File

@@ -180,7 +180,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
operator_ret= WM_operator_call_py(C, ot, context, &ptr, reports);
if(BPy_reports_to_error(reports))
if(BPy_reports_to_error(reports, FALSE))
error_val = -1;
/* operator output is nice to have in the terminal/console too */