Fix #121458: crash when using layout panels in operator ui

The same fix is used in e.g. `wm_block_dialog_create`.
This commit is contained in:
Jacques Lucke
2024-05-07 12:01:11 +02:00
parent 96db947f16
commit 89a1a2cd7e

View File

@@ -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);