diff options
author | Julian Eisel <julian@blender.org> | 2022-03-22 20:35:28 +0300 |
---|---|---|
committer | Philipp Oeser <info@graphics-engineer.com> | 2022-03-24 10:51:28 +0300 |
commit | 7cecb81e193f625ce698806ba36eaee4118240c3 (patch) | |
tree | 5054767d7343fbc2c8836ede36ef0b1da5c5337c | |
parent | 97de02247a614d7b8b74cc648bf8db95fff15058 (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.
-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 ed512f510e7..947aa1f477e 100644 --- a/source/blender/editors/interface/interface_ops.c +++ b/source/blender/editors/interface/interface_ops.c @@ -1989,6 +1989,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); |