diff options
author | Hans Goudey <h.goudey@me.com> | 2020-06-23 17:16:28 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2020-06-23 17:16:28 +0300 |
commit | 27972c4225c26780eb957ddf0c98ce4cee3d29e5 (patch) | |
tree | a8673f18fcf6f7d9555ba98dab38dc9b88e1c697 | |
parent | 4284ddefab20c1e092871941c3e79aa307ecc1e9 (diff) |
UI: Don't expand bevel active tool setting
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index bfd5be8862d..52c59431316 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -738,10 +738,11 @@ class _defs_edit_mesh: def bevel(): def draw_settings(context, layout, tool, *, extra=False): props = tool.operator_properties("mesh.bevel") - region_type = context.region.type + + region_is_header = context.region.type == 'TOOL_HEADER' if not extra: - if region_type == 'TOOL_HEADER': + if region_is_header: layout.prop(props, "offset_type", text="") else: layout.prop(props, "offset_type") @@ -749,11 +750,11 @@ class _defs_edit_mesh: layout.prop(props, "segments") row = layout.row() - row.prop(props, "profile_type", expand=True) + row.prop(props, "profile_type", text="" if region_is_header else None) if props.profile_type == 'SUPERELLIPSE': layout.prop(props, "profile", text="Shape", slider=True) - if region_type == 'TOOL_HEADER': + if region_is_header: layout.popover("TOPBAR_PT_tool_settings_extra", text="...") else: extra = True |