From d8daeeb9300953ee175e06c8fc1aa3a44a72da20 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 12 Mar 2019 16:19:37 +1100 Subject: 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. --- release/scripts/startup/bl_ui/space_topbar.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'release/scripts/startup/bl_ui/space_topbar.py') 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): -- cgit v1.2.3