diff options
author | Nathan Letwory <nathan@letworyinteractive.com> | 2011-04-09 06:23:39 +0400 |
---|---|---|
committer | Nathan Letwory <nathan@letworyinteractive.com> | 2011-04-09 06:23:39 +0400 |
commit | d13df6cffc19068edf6ce8667193de578872efdf (patch) | |
tree | a17af06cdfcf583772ea7d6408eb16f82abb2df7 | |
parent | 161927e27e7f44c1a2a181467e83ba9e88c9900f (diff) |
Print out reports on console too (debug and up) as fix for [#26708] "INFO" reports are not displayed
reported by Tom Edwards
Showing of certain reports (ie. info) is very hidden. At least print these to console.
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index e3d2a738497..2b74d35d59e 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -445,6 +445,7 @@ static void wm_operator_reports(bContext *C, wmOperator *op, int retval, int pop if(G.f & G_DEBUG) wm_operator_print(C, op); /* todo - this print may double up, might want to check more flags then the FINISHED */ + BKE_reports_print(op->reports, RPT_DEBUG); /* print out reports to console. */ 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 */ @@ -705,7 +706,6 @@ static int wm_operator_invoke(bContext *C, wmOperatorType *ot, wmEvent *event, P if (!(retval & OPERATOR_HANDLED) && retval & (OPERATOR_FINISHED|OPERATOR_CANCELLED)) /* only show the report if the report list was not given in the function */ wm_operator_reports(C, op, retval, (reports==NULL)); - if(retval & OPERATOR_HANDLED) ; /* do nothing, wm_operator_exec() has been called somewhere */ |