diff options
author | Campbell Barton <ideasman42@gmail.com> | 2016-06-27 10:09:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2016-06-27 10:09:52 +0300 |
commit | f1253f5d2b710d4a3b3fcb4534007877a136702c (patch) | |
tree | 860045a2bb86d3482a974551dc157a0f64ff73b7 /source/blender/python | |
parent | 6021cc4007dacce541be75b62c35508a2679ab10 (diff) |
Fix T48717: Modal operators called from Py omit reports from the UI
Diffstat (limited to 'source/blender/python')
-rw-r--r-- | source/blender/python/intern/bpy_operator.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c index d6c57f4c302..eaa96e6243c 100644 --- a/source/blender/python/intern/bpy_operator.c +++ b/source/blender/python/intern/bpy_operator.c @@ -264,6 +264,11 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args) if ((reports->flag & RPT_FREE) == 0) { 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); |