From f50222ba2e3e4aa461c23b4f0b3f3382a9e0632c Mon Sep 17 00:00:00 2001 From: Aaron Carlisle Date: Sun, 7 Jun 2020 21:03:26 -0400 Subject: UI: Bevel: Show Offset type before offset amount Because this controls how the amount is used in should be set first and is more important therefor place it at the top. This is also consistent with other areas in Blender --- source/blender/modifiers/intern/MOD_bevel.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/blender/modifiers/intern/MOD_bevel.c') diff --git a/source/blender/modifiers/intern/MOD_bevel.c b/source/blender/modifiers/intern/MOD_bevel.c index 76b8985975e..aeec8710ed1 100644 --- a/source/blender/modifiers/intern/MOD_bevel.c +++ b/source/blender/modifiers/intern/MOD_bevel.c @@ -287,6 +287,8 @@ static void panel_draw(const bContext *C, Panel *panel) uiLayoutSetPropSep(layout, true); col = uiLayoutColumn(layout, false); + uiItemR(col, &ptr, "offset_type", 0, NULL, ICON_NONE); + const char *offset_name = ""; if (RNA_enum_get(&ptr, "offset_type") == BEVEL_AMT_PERCENT) { uiItemR(col, &ptr, "width_pct", 0, NULL, ICON_NONE); @@ -305,7 +307,6 @@ static void panel_draw(const bContext *C, Panel *panel) } uiItemR(col, &ptr, "width", 0, IFACE_(offset_name), ICON_NONE); } - uiItemR(col, &ptr, "offset_type", 0, NULL, ICON_NONE); uiItemR(layout, &ptr, "segments", 0, NULL, ICON_NONE); -- cgit v1.2.3