Commit: a5d3fbf099950cd192094efa541e722e2d91c8d7
Author: Mateusz Grzeliński
Date: Sat Aug 1 13:10:50 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rBa5d3fbf099950cd192094efa541e722e2d91c8d7
Remove background check
Reports no longer print to console
===================================================================
M source/blender/windowmanager/intern/wm_event_system.c
===================================================================
diff --git a/source/blender/windowmanager/intern/wm_event_system.c
b/source/blender/windowmanager/intern/wm_event_system.c
index 610887d740d..f7acdd490d9 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -860,12 +860,10 @@ static void wm_operator_reports(bContext *C, wmOperator
*op, int retval, bool ca
}
if (op->type->flag & OPTYPE_REGISTER) {
- if (G.background == 0) { /* ends up printing these in the terminal, gets
annoying */
- /* Report the python string representation of the operator */
- char *buf = WM_operator_pystring(C, op, false, true);
- BKE_report_format(CTX_wm_reports(C), RPT_OPERATOR, RPT_PYTHON, buf);
- MEM_freeN(buf);
- }
+ /* Report the python string representation of the operator */
+ char *buf = WM_operator_pystring(C, op, false, true);
+ BKE_report_format(CTX_wm_reports(C), RPT_OPERATOR, RPT_PYTHON, buf);
+ MEM_freeN(buf);
}
}
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs