diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-18 16:49:03 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2018-05-18 16:50:08 +0300 |
commit | 6776a55464db795c3eb83f1323d93960f725f3a8 (patch) | |
tree | 4c63e67882be6e3293ae24c5e12677edad05fff1 /source/blender/windowmanager | |
parent | d7ba8611e29a7cc188b3297a74338905f5dfa491 (diff) |
Fix crash rendering files with Python errors in background mode.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_event_system.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_event_system.c b/source/blender/windowmanager/intern/wm_event_system.c index 74de77ee1c2..d38416e490d 100644 --- a/source/blender/windowmanager/intern/wm_event_system.c +++ b/source/blender/windowmanager/intern/wm_event_system.c @@ -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); |