diff --git a/source/blender/editors/interface/interface.cc b/source/blender/editors/interface/interface.cc index aa5e870623d..6da7576d513 100644 --- a/source/blender/editors/interface/interface.cc +++ b/source/blender/editors/interface/interface.cc @@ -4585,7 +4585,15 @@ static uiBut *ui_def_but_rna(uiBlock *block, #endif } - icon = item[i].icon; + /* #ICON_BLANK1 can be used to add padding of the size of an icon. This is fine to align + * multiple items within a menu, but not for the menu button that only shows the label then. + */ + if ((type == UI_BTYPE_MENU) && (item[i].icon == ICON_BLANK1)) { + icon = ICON_NONE; + } + else { + icon = item[i].icon; + } } else { if (!str) {