Minor fix to BKE_reportf(): also output the report's type when printing to console.

This commit is contained in:
Bastien Montagne
2012-10-19 17:08:46 +00:00
parent 7e620f04a1
commit 3fec74ec1a

View File

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