Fix `WM_report` not printing into console.

Also make it print warnings, not only errors.

Related to D15732.
This commit is contained in:
Bastien Montagne 2022-11-15 15:50:27 +01:00
parent 4d1a88e374
commit bcb20e9a29
1 changed files with 2 additions and 1 deletions

View File

@ -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);