diff options
author | Julian Eisel <julian@blender.org> | 2022-03-22 20:35:28 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-03-22 20:35:28 +0300 |
commit | b7b3c4c40c80c9b62cae420929ae04959cd24ddc (patch) | |
tree | d8547427d30697349e437a48541187642d0bde02 /source | |
parent | b40ac9684c497f2ba49d3a2b372d05b97874bbf0 (diff) |
Fix T96705: Crash when pressing F3 outside a Blender window if Developer extras
If the mouse is not hovering the window, there is no active region. This is a
valid state, but the UI-list filter operator didn't account for that case.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_ops.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/interface/interface_ops.c b/source/blender/editors/interface/interface_ops.c index 54bd1a2cebb..0f4f0ef48ff 100644 --- a/source/blender/editors/interface/interface_ops.c +++ b/source/blender/editors/interface/interface_ops.c @@ -1976,6 +1976,9 @@ static void UI_OT_drop_name(wmOperatorType *ot) static bool ui_list_focused_poll(bContext *C) { const ARegion *region = CTX_wm_region(C); + if (!region) { + return false; + } const wmWindow *win = CTX_wm_window(C); const uiList *list = UI_list_find_mouse_over(region, win->eventstate); |