Tool System: show weight for the gradient tool
authorCampbell Barton <ideasman42@gmail.com>
Wed, 5 Sep 2018 06:01:53 +0000 (16:01 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 5 Sep 2018 06:01:53 +0000 (16:01 +1000)
release/scripts/startup/bl_ui/space_toolsystem_toolbar.py

index b41d9adcab512331cc32a2795bf8735d2b135a9d..d531e2d5f9b9e2c9ad572e64f8b8564056455ae1 100644 (file)
@@ -1134,6 +1134,10 @@ class _defs_weight_paint:
         def draw_settings(context, layout, tool):
             props = tool.operator_properties("paint.weight_gradient")
             layout.prop(props, "type")
+            brush = context.tool_settings.weight_paint.brush
+            if brush is not None:
+                from .properties_paint_common import UnifiedPaintPanel
+                UnifiedPaintPanel.prop_unified_weight(layout, context, brush, "weight", slider=True, text="Weight")
 
         return dict(
             text="Gradient",