Tool System: show weight for the gradient tool

This commit is contained in:
Campbell Barton
2018-09-05 16:01:53 +10:00
parent 8ceff4c9ee
commit e965af50b3

View 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",