Correct last commit (keep same location as brushes)

This commit is contained in:
Campbell Barton
2018-09-05 16:05:00 +10:00
parent e965af50b3
commit 717f976a0e

View File

@@ -1132,12 +1132,12 @@ class _defs_weight_paint:
@ToolDef.from_fn
def gradient():
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")
props = tool.operator_properties("paint.weight_gradient")
layout.prop(props, "type")
return dict(
text="Gradient",