Correct last commit (keep same location as brushes)
authorCampbell Barton <ideasman42@gmail.com>
Wed, 5 Sep 2018 06:05:00 +0000 (16:05 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 5 Sep 2018 06:05:00 +0000 (16:05 +1000)
release/scripts/startup/bl_ui/space_toolsystem_toolbar.py

index d531e2d5f9b9e2c9ad572e64f8b8564056455ae1..c5feb485355d7bcdbd8b5402fe5b536edcdc0fc1 100644 (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",