[Bf-blender-cvs] [f1253f5] master: Fix T48717: Modal operators called from Py omit reports from the UI
Campbell Barton
noreply at git.blender.org
Mon Jun 27 09:12:18 CEST 2016
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);
More information about the Bf-blender-cvs
mailing list