report errors with library linking errors.
[blender.git] / source / blender / editors / interface / interface_regions.c
index 6bc4e7b0b6599ad2e96b8c8cdecddb197cefbb59..3a02b1f7e0c0c873b1d5ddf76c2cd7464ba53fe6 100644 (file)
@@ -2229,7 +2229,9 @@ void uiPupMenuReports(bContext *C, ReportList *reports)
        ds= BLI_dynstr_new();
 
        for(report=reports->list.first; report; report=report->next) {
        ds= BLI_dynstr_new();
 
        for(report=reports->list.first; report; report=report->next) {
-               if(report->type >= RPT_ERROR)
+               if(report->type <= reports->printlevel)
+                       ; /* pass */
+               else if(report->type >= RPT_ERROR)
                        BLI_dynstr_appendf(ds, "Error %%i%d%%t|%s", ICON_ERROR, report->message);
                else if(report->type >= RPT_WARNING)
                        BLI_dynstr_appendf(ds, "Warning %%i%d%%t|%s", ICON_ERROR, report->message);
                        BLI_dynstr_appendf(ds, "Error %%i%d%%t|%s", ICON_ERROR, report->message);
                else if(report->type >= RPT_WARNING)
                        BLI_dynstr_appendf(ds, "Warning %%i%d%%t|%s", ICON_ERROR, report->message);