[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36068] trunk/blender/source/blender/ windowmanager/intern/wm_event_system.c: Print out reports on console too ( debug and up) as fix for [#26708] "INFO" reports are not displayed

Nathan Letwory nathan at letworyinteractive.com
Sat Apr 9 04:23:42 CEST 2011


Revision: 36068
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36068
Author:   jesterking
Date:     2011-04-09 02:23:39 +0000 (Sat, 09 Apr 2011)
Log Message:
-----------
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.

Modified Paths:
--------------
    trunk/blender/source/blender/windowmanager/intern/wm_event_system.c

Modified: trunk/blender/source/blender/windowmanager/intern/wm_event_system.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_event_system.c	2011-04-09 00:10:29 UTC (rev 36067)
+++ trunk/blender/source/blender/windowmanager/intern/wm_event_system.c	2011-04-09 02:23:39 UTC (rev 36068)
@@ -445,6 +445,7 @@
 		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 @@
 		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 */




More information about the Bf-blender-cvs mailing list