Merge branch 'blender-v4.4-release'

This commit is contained in:
Harley Acheson
2025-02-17 18:13:17 -08:00

View File

@@ -4520,7 +4520,13 @@ static void ui_def_but_rna__menu(bContext *C, uiLayout *layout, void *but_p)
/* Wrap long single-column lists. */
if (categories == 0) {
columns = std::max((totitems + col_rows) / max_rows, 1);
columns = std::max((totitems + 20) / 20, 1);
if (columns > 8) {
columns = (totitems + 25) / 25;
}
if ((totitems / columns) > max_rows) {
columns = std::max((totitems + col_rows) / max_rows, 1);
}
rows = std::max(totitems / columns, 1);
while (rows * columns < totitems) {
rows++;