Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-03-22 05:38:39 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-22 05:38:39 +0300
commit2299d674f43e6ce9a872f30517fa6dfdeef75cc1 (patch)
treebfd3cb7dbfadb2f31d1d937f069a97f1b31804fa /source/blender/python/intern/bpy_operator.c
parenta503713d6ca238119a57d0c86d79480aeccf5642 (diff)
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.
Diffstat (limited to 'source/blender/python/intern/bpy_operator.c')
-rw-r--r--source/blender/python/intern/bpy_operator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c
index a116aa0e9c0..ebe6e05ee43 100644
--- a/source/blender/python/intern/bpy_operator.c
+++ b/source/blender/python/intern/bpy_operator.c
@@ -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);