Fix crash rendering files with Python errors in background mode.
This commit is contained in:
parent
d7ba8611e2
commit
6776a55464
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue