UI: Slight reduction and centering of UI_BTYPE_SEPR_LINE #111764

Merged
Harley Acheson merged 2 commits from Harley/blender:MenuSep into main 2023-09-01 17:12:54 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 5a990ce6cf - Show all commits

View File

@ -3417,7 +3417,7 @@ void uiItemS_ex(uiLayout *layout, float factor)
if (is_menu && !UI_block_can_add_separator(block)) {
return;
}
int space = (is_menu) ? 0.35f * UI_UNIT_X : 0.3f * UI_UNIT_X;
int space = (is_menu) ? int(0.35f * UI_UNIT_X) : int(0.3f * UI_UNIT_X);
space *= factor;
UI_block_layout_set_current(block, layout);