Skip to content
Snippets Groups Projects
Commit 7cecb81e authored by Julian Eisel's avatar Julian Eisel Committed by Philipp Oeser
Browse files

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.
parent 97de0224
No related branches found
No related tags found
No related merge requests found
...@@ -1989,6 +1989,9 @@ static void UI_OT_drop_name(wmOperatorType *ot) ...@@ -1989,6 +1989,9 @@ static void UI_OT_drop_name(wmOperatorType *ot)
static bool ui_list_focused_poll(bContext *C) static bool ui_list_focused_poll(bContext *C)
{ {
const ARegion *region = CTX_wm_region(C); const ARegion *region = CTX_wm_region(C);
if (!region) {
return false;
}
const wmWindow *win = CTX_wm_window(C); const wmWindow *win = CTX_wm_window(C);
const uiList *list = UI_list_find_mouse_over(region, win->eventstate); const uiList *list = UI_list_find_mouse_over(region, win->eventstate);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment