diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-09-05 09:05:00 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-09-05 09:05:00 +0300 |
commit | 717f976a0ea59a21e5762de076ca8abcb9eb234e (patch) | |
tree | 64abc93d75cecac8d6bdf551d47fdcec1f411371 /release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | |
parent | e965af50b330e2e1d18ffa8afee47b8f453287de (diff) |
Correct last commit (keep same location as brushes)
Diffstat (limited to 'release/scripts/startup/bl_ui/space_toolsystem_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_toolsystem_toolbar.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py index d531e2d5f9b..c5feb485355 100644 --- a/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py +++ b/release/scripts/startup/bl_ui/space_toolsystem_toolbar.py @@ -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", |