Minor fix to BKE_reportf(): also output the report's type when printing to console.
authorBastien Montagne <montagne29@wanadoo.fr>
Fri, 19 Oct 2012 17:08:46 +0000 (17:08 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Fri, 19 Oct 2012 17:08:46 +0000 (17:08 +0000)
source/blender/blenkernel/intern/report.c

index ae6f4f3..d925d73 100644 (file)
@@ -134,6 +134,7 @@ void BKE_reportf(ReportList *reports, ReportType type, const char *_format, ...)
        const char *format = TIP_(_format);
 
        if (G.background || !reports || ((reports->flag & RPT_PRINT) && (type >= reports->printlevel))) {
+               printf("%s: ", report_type_str(type));
                va_start(args, _format);
                vprintf(format, args);
                va_end(args);