diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-12 08:19:37 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-12 08:31:02 +0300 |
commit | d8daeeb9300953ee175e06c8fc1aa3a44a72da20 (patch) | |
tree | 719f55af77cdd9fffddcd13291e5088f8755a9a8 /release/scripts/startup/bl_ui/space_topbar.py | |
parent | 5234ced102e003d4239db82174dc90266d6f880a (diff) |
UI: Avoid redundant text argument to UnifiedPaintPanel methods
Now when the text argument is omitted, use the default name
matching how regular properties work.
Avoids passing in the same name which RNA has,
matches UILayout.prop behavior.
Also use keyword only for optional arguments.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_topbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 135982130b0..6e780df126d 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -441,12 +441,12 @@ class _draw_left_context_mode: from .properties_paint_common import UnifiedPaintPanel row = layout.row(align=True) - UnifiedPaintPanel.prop_unified_size(row, context, brush, "size", slider=True, text="Radius") - UnifiedPaintPanel.prop_unified_size(row, context, brush, "use_pressure_size") + UnifiedPaintPanel.prop_unified_size(row, context, brush, "size", slider=True) + UnifiedPaintPanel.prop_unified_size(row, context, brush, "use_pressure_size", text="") row = layout.row(align=True) - UnifiedPaintPanel.prop_unified_strength(row, context, brush, "strength", slider=True, text="Strength") - UnifiedPaintPanel.prop_unified_strength(row, context, brush, "use_pressure_strength") + UnifiedPaintPanel.prop_unified_strength(row, context, brush, "strength", slider=True) + UnifiedPaintPanel.prop_unified_strength(row, context, brush, "use_pressure_strength", text="") @staticmethod def PAINT(context, layout, tool): |