From 23bb7fc721821632c2080a1e79c59207cec64353 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Thu, 19 Jan 2012 18:22:55 +0000 Subject: [PATCH] Add missing labels to sculpt/paint sliders. Thanks Sergey for pointing out --- release/scripts/startup/bl_ui/space_image.py | 8 ++++---- .../scripts/startup/bl_ui/space_view3d_toolbar.py | 14 +++++++------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py index 409494b5cbb..aabf86c6c18 100644 --- a/release/scripts/startup/bl_ui/space_image.py +++ b/release/scripts/startup/bl_ui/space_image.py @@ -671,11 +671,11 @@ class IMAGE_PT_paint(Panel, ImagePaintPanel): col.prop(brush, "color", text="") row = col.row(align=True) - self.prop_unified_size(row, context, brush, "size", slider=True) + self.prop_unified_size(row, context, brush, "size", slider=True, text="Radius") self.prop_unified_size(row, context, brush, "use_pressure_size") row = col.row(align=True) - self.prop_unified_strength(row, context, brush, "strength", slider=True) + self.prop_unified_strength(row, context, brush, "strength", slider=True, text="Strength") self.prop_unified_strength(row, context, brush, "use_pressure_strength") row = col.row(align=True) @@ -820,11 +820,11 @@ class IMAGE_UV_sculpt(Panel, ImagePaintPanel): col = layout.column() row = col.row(align=True) - self.prop_unified_size(row, context, brush, "size", slider=True) + self.prop_unified_size(row, context, brush, "size", slider=True, text="Radius") self.prop_unified_size(row, context, brush, "use_pressure_size") row = col.row(align=True) - self.prop_unified_strength(row, context, brush, "strength", slider=True) + self.prop_unified_strength(row, context, brush, "strength", slider=True, text="Strength") self.prop_unified_strength(row, context, brush, "use_pressure_strength") split = layout.split() diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index bbc04dad816..ff482e7cb74 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -526,16 +526,16 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel): if brush.use_space and tool != 'SMOOTH': if brush.use_space_atten: - row.prop(brush, "use_space_atten", toggle=True, text="", icon='LOCKED') + row.prop(brush, "use_space_atten", toggle=True, icon='LOCKED') else: - row.prop(brush, "use_space_atten", toggle=True, text="", icon='UNLOCKED') + row.prop(brush, "use_space_atten", toggle=True, icon='UNLOCKED') - self.prop_unified_strength(row, context, brush, "strength") + self.prop_unified_strength(row, context, brush, "strength", text="Strength") self.prop_unified_strength(row, context, brush, "use_pressure_strength") if tool == 'ROTATE': row = col.row(align=True) - self.prop_unified_strength(row, context, brush, "strength") + self.prop_unified_strength(row, context, brush, "strength", text="Strength") self.prop_unified_strength(row, context, brush, "use_pressure_strength") if tool != 'SMOOTH': @@ -627,7 +627,7 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel): self.prop_unified_size(row, context, brush, "use_pressure_size") row = col.row(align=True) - self.prop_unified_strength(row, context, brush, "strength") + self.prop_unified_strength(row, context, brush, "strength", text="Strength") self.prop_unified_strength(row, context, brush, "use_pressure_strength") row = col.row(align=True) @@ -653,7 +653,7 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel): self.prop_unified_size(row, context, brush, "use_pressure_size") row = col.row(align=True) - self.prop_unified_strength(row, context, brush, "strength") + self.prop_unified_strength(row, context, brush, "strength", text="Strength") self.prop_unified_strength(row, context, brush, "use_pressure_strength") row = col.row(align=True) @@ -671,7 +671,7 @@ class VIEW3D_PT_tools_brush(Panel, View3DPaintPanel): self.prop_unified_size(row, context, brush, "use_pressure_size") row = col.row(align=True) - self.prop_unified_strength(row, context, brush, "strength") + self.prop_unified_strength(row, context, brush, "strength", text="Strength") self.prop_unified_strength(row, context, brush, "use_pressure_strength") # XXX - TODO