Fix crash rendering files with Python errors in background mode.

This commit is contained in:
Brecht Van Lommel 2018-05-18 15:49:03 +02:00
parent d7ba8611e2
commit 6776a55464
1 changed files with 1 additions and 1 deletions

View File

@ -788,7 +788,7 @@ void WM_reportf(ReportType type, const char *format, ...)
/* (caller_owns_reports == true) when called from python */
static void wm_operator_reports(bContext *C, wmOperator *op, int retval, bool caller_owns_reports)
{
if (caller_owns_reports == false) { /* popup */
if (G.background == 0 && caller_owns_reports == false) { /* popup */
if (op->reports->list.first) {
/* FIXME, temp setting window, see other call to UI_popup_menu_reports for why */
wmWindow *win_prev = CTX_wm_window(C);