[Bf-blender-cvs] [e965af50b33] blender2.8: Tool System: show weight for the gradient tool

Campbell Barton noreply at git.blender.org
Wed Sep 5 07:54:33 CEST 2018


Commit: e965af50b330e2e1d18ffa8afee47b8f453287de
Author: Campbell Barton
Date:   Wed Sep 5 16:01:53 2018 +1000
Branches: blender2.8
https://developer.blender.org/rBe965af50b330e2e1d18ffa8afee47b8f453287de

Tool System: show weight for the gradient tool

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

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 b41d9adcab5..d531e2d5f9b 100644
--- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
@@ -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",



More information about the Bf-blender-cvs mailing list