Commit: e748bc45f12106bf575697303a0165da31089426
Author: Mateusz Grzeliński
Date: Sat Aug 1 13:06:59 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rBe748bc45f12106bf575697303a0165da31089426
Revert "Report unregistered operators"
This reverts commit f28269fd
===================================================================
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 c5825ccb962..610887d740d 100644
--- a/source/blender/windowmanager/intern/wm_event_system.c
+++ b/source/blender/windowmanager/intern/wm_event_system.c
@@ -853,19 +853,20 @@ static void wm_operator_reports(bContext *C, wmOperator
*op, int retval, bool ca
}
if (retval & OPERATOR_FINISHED) {
+ CLOG_STR_INFO_N(WM_LOG_OPERATORS, WM_operator_pystring(C, op, false,
true));
+
if (caller_owns_reports == false) {
CLOG_STR_VERBOSE_N(WM_LOG_OPERATORS, 1,
BKE_reports_sprintfN(op->reports, 0));
}
- char *buf = WM_operator_pystring(C, op, false, true);
if (op->type->flag & OPTYPE_REGISTER) {
- /* Report the python string representation of the operator */
- BKE_report_format(CTX_wm_reports(C), RPT_OPERATOR, RPT_PYTHON, buf);
- }
- else {
- BKE_report_format(CTX_wm_reports(C), RPT_OPERATOR_UNREGISTERED,
RPT_PYTHON, buf);
+ 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);
+ }
}
- MEM_freeN(buf);
}
/* Refresh Info Editor with reports immediately, even if op returned
OPERATOR_CANCELLED. */
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs