diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-04-30 07:16:50 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-04-30 07:16:50 +0300 |
commit | 2ed847317e7da8de86846766c54f40c5ee7cee73 (patch) | |
tree | e6749fde591b4cc7d93b0103bbd928c2b1ea8544 /source/blender/windowmanager | |
parent | caf1643f4a779cb13523843252fde930e615e865 (diff) |
Fix crash running window operators in background mode
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/intern/wm_operators.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_operators.c b/source/blender/windowmanager/intern/wm_operators.c index 6f98ecfd621..9175eb2dbf7 100644 --- a/source/blender/windowmanager/intern/wm_operators.c +++ b/source/blender/windowmanager/intern/wm_operators.c @@ -1911,6 +1911,9 @@ static bool wm_operator_winactive_normal(bContext *C) if (!((screen = WM_window_get_active_screen(win)) && (screen->state == SCREENNORMAL))) { return 0; } + if (G.background) { + return 0; + } return 1; } |