Commit: f1253f5d2b710d4a3b3fcb4534007877a136702c
Author: Campbell Barton
Date:   Mon Jun 27 17:09:52 2016 +1000
Branches: master
https://developer.blender.org/rBf1253f5d2b710d4a3b3fcb4534007877a136702c

Fix T48717: Modal operators called from Py omit reports from the UI

===================================================================

M       source/blender/python/intern/bpy_operator.c

===================================================================

diff --git a/source/blender/python/intern/bpy_operator.c 
b/source/blender/python/intern/bpy_operator.c
index d6c57f4..eaa96e6 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);

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to