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>2019-03-27 06:01:25 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-27 06:03:40 +0300
commit9f2665b52624eb1dbf75f479c5d9529ca067f29a (patch)
tree915aea75a21af42af843b94a4adbcf46f0ee61a0 /source/blender/python/intern/bpy_operator.c
parentfb7f157ff89dc5a3697922ee8c8403a001cd822f (diff)
PyAPI: utility function to print reports
Diffstat (limited to 'source/blender/python/intern/bpy_operator.c')
-rw-r--r--source/blender/python/intern/bpy_operator.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c
index ecae71d07e3..98b2f871c54 100644
--- a/source/blender/python/intern/bpy_operator.c
+++ b/source/blender/python/intern/bpy_operator.c
@@ -262,10 +262,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
/* operator output is nice to have in the terminal/console too */
if (!BLI_listbase_is_empty(&reports->list)) {
- Report *report;
- for (report = reports->list.first; report; report = report->next) {
- PySys_WriteStdout("%s: %s\n", report->typestr, report->message);
- }
+ BPy_reports_write_stdout(reports, NULL);
}
BKE_reports_clear(reports);