[Bf-blender-cvs] [24ea6b713d7] master: UI: Remove Width/Percentage control from Bevel tool settings

William Reynish noreply at git.blender.org
Sun Feb 23 16:52:45 CET 2020


Commit: 24ea6b713d7db459327cf2c62e8d596eebf74d59
Author: William Reynish
Date:   Sun Feb 23 16:52:43 2020 +0100
Branches: master
https://developer.blender.org/rB24ea6b713d7db459327cf2c62e8d596eebf74d59

UI: Remove Width/Percentage control from Bevel tool settings

Since this control is set as you drag in the viewport anyway, this amount value is effectively useless.

It was only recently added by mistake with the Bevel GSOC.

===================================================================

M	release/scripts/startup/bl_ui/space_toolsystem_toolbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
index cd1fc49ac8b..2541613d1e6 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -608,15 +608,6 @@ class _defs_edit_mesh:
             region_type = context.region.type
 
             if not extra:
-                if props.offset_type == 'PERCENT':
-                    layout.prop(props, "offset_pct")
-                else:
-                    offset_text = "Width"
-                    if props.offset_type == 'DEPTH':
-                        offset_text = "Depth"
-                    elif props.offset_type == 'OFFSET':
-                        offset_text = "Offset"
-                    layout.prop(props, "offset", text=offset_text)
                 if region_type == 'TOOL_HEADER':
                     layout.prop(props, "offset_type", text="")
                 else:



More information about the Bf-blender-cvs mailing list