From 89a1a2cd7ef8700deed62762f65745eccb79fa95 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Tue, 7 May 2024 12:01:11 +0200 Subject: [PATCH] Fix #121458: crash when using layout panels in operator ui The same fix is used in e.g. `wm_block_dialog_create`. --- source/blender/windowmanager/intern/wm_operators.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/blender/windowmanager/intern/wm_operators.cc b/source/blender/windowmanager/intern/wm_operators.cc index 0b2da6c2ce1..c153fbbe6b3 100644 --- a/source/blender/windowmanager/intern/wm_operators.cc +++ b/source/blender/windowmanager/intern/wm_operators.cc @@ -1631,6 +1631,8 @@ static uiBlock *wm_operator_ui_create(bContext *C, ARegion *region, void *user_d UI_block_flag_enable(block, UI_BLOCK_KEEP_OPEN | UI_BLOCK_MOVEMOUSE_QUIT); UI_block_theme_style_set(block, UI_BLOCK_THEME_STYLE_REGULAR); + UI_popup_dummy_panel_set(region, block); + uiLayout *layout = UI_block_layout( block, UI_LAYOUT_VERTICAL, UI_LAYOUT_PANEL, 0, 0, data->width, 0, 0, style);