[Bf-blender-cvs] [717f976a0ea] blender2.8: Correct last commit (keep same location as brushes)

Campbell Barton noreply at git.blender.org
Wed Sep 5 07:56:40 CEST 2018


Commit: 717f976a0ea59a21e5762de076ca8abcb9eb234e
Author: Campbell Barton
Date:   Wed Sep 5 16:05:00 2018 +1000
Branches: blender2.8
https://developer.blender.org/rB717f976a0ea59a21e5762de076ca8abcb9eb234e

Correct last commit (keep same location as brushes)

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

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



More information about the Bf-blender-cvs mailing list