Fix #115815: Include Category name in Enum Row Calculation #115822

Merged
Harley Acheson merged 1 commits from Harley/blender:Fix115815 into main 2023-12-06 01:37:16 +01:00
1 changed files with 2 additions and 0 deletions

View File

@ -4349,6 +4349,8 @@ static void ui_def_but_rna__menu(bContext *C, uiLayout *layout, void *but_p)
}
if (!item->identifier[0] && item->name) {
categories++;
/* The category name adds to the column length. */
col_rows++;
}
if (item->icon) {
has_item_with_icon = true;