Fix `WM_report` not printing into console.
Also make it print warnings, not only errors. Related to D15732.
This commit is contained in:
parent
4d1a88e374
commit
bcb20e9a29
|
@ -893,7 +893,8 @@ static void wm_add_reports(ReportList *reports)
|
|||
void WM_report(eReportType type, const char *message)
|
||||
{
|
||||
ReportList reports;
|
||||
BKE_reports_init(&reports, RPT_STORE);
|
||||
BKE_reports_init(&reports, RPT_STORE | RPT_PRINT);
|
||||
BKE_report_print_level_set(&reports, RPT_WARNING);
|
||||
BKE_report(&reports, type, message);
|
||||
|
||||
wm_add_reports(&reports);
|
||||
|
|
Loading…
Reference in New Issue