diff --git a/source/blender/editors/interface/interface_layout.cc b/source/blender/editors/interface/interface_layout.cc index 0e80e153235..9047e774498 100644 --- a/source/blender/editors/interface/interface_layout.cc +++ b/source/blender/editors/interface/interface_layout.cc @@ -6144,8 +6144,9 @@ static void ui_paneltype_draw_impl(bContext *C, PanelType *pt, uiLayout *layout, ui_block_add_dynamic_listener(block, pt->listener); } - /* This check may be paranoid, this function might run outside the context of a popup. */ - if (block->handle) { + /* This check may be paranoid, this function might run outside the context of a popup or can run + * in popopers that are not supposed to support refreshing, see #ui_popover_create_block. */ + if (block->handle && block->handle->region) { /* Allow popovers to contain collapsible sections, see #uiItemPopoverPanel. */ UI_popup_dummy_panel_set(block->handle->region, block); }