Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_widgets.c
| Show First 20 Lines • Show All 2,370 Lines • ▼ Show 20 Lines | #endif | ||||
| if (is_tool) { | if (is_tool) { | ||||
| /* pass (even if its a menu toolbar) */ | /* pass (even if its a menu toolbar) */ | ||||
| } | } | ||||
| else if (ui_block_is_pie_menu(but->block)) { | else if (ui_block_is_pie_menu(but->block)) { | ||||
| if (but->emboss == UI_EMBOSS_RADIAL) { | if (but->emboss == UI_EMBOSS_RADIAL) { | ||||
| rect->xmin += 0.3f * U.widget_unit; | rect->xmin += 0.3f * U.widget_unit; | ||||
| } | } | ||||
| } | } | ||||
| else if (ui_block_is_menu(but->block)) { | else if (ui_block_is_menu(but->block) && but->alignnr == 0) { | ||||
| rect->xmin += 0.2f * U.widget_unit; | rect->xmin += 0.2f * U.widget_unit; | ||||
| } | } | ||||
| widget_draw_icon(but, icon, alpha, rect, wcol->text); | widget_draw_icon(but, icon, alpha, rect, wcol->text); | ||||
| if (show_menu_icon) { | if (show_menu_icon) { | ||||
| BLI_assert(but->block->content_hints & UI_BLOCK_CONTAINS_SUBMENU_BUT); | BLI_assert(but->block->content_hints & UI_BLOCK_CONTAINS_SUBMENU_BUT); | ||||
| widget_draw_submenu_tria(but, rect, wcol); | widget_draw_submenu_tria(but, rect, wcol); | ||||
| } | } | ||||
| ▲ Show 20 Lines • Show All 2,979 Lines • Show Last 20 Lines | |||||