Tools: Re-order Weight Paint toolbar
authorWilliam Reynish <billrey@me.com>
Fri, 8 Mar 2019 14:07:18 +0000 (15:07 +0100)
committerWilliam Reynish <billrey@me.com>
Fri, 8 Mar 2019 14:07:18 +0000 (15:07 +0100)
-Group gradient with the other paint tools
-Nest the two Sample tools together
-Keep painting tools first, secondary tools after
-Make sure toolbar doesn't jump when selection is enabled

release/scripts/startup/bl_ui/space_toolsystem_toolbar.py

index 31ea4b1..5e77d9c 100644 (file)
@@ -1728,20 +1728,22 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
             ),
         ],
         'PAINT_WEIGHT': [
-            # TODO, check for mixed pose mode
-            _defs_view3d_generic.cursor,
             _defs_weight_paint.generate_from_brushes,
+            _defs_weight_paint.gradient,
             None,
+            (
             _defs_weight_paint.sample_weight,
             _defs_weight_paint.sample_weight_group,
+            ),
+            None,
+            # TODO, check for mixed pose mode
+            _defs_view3d_generic.cursor,
             None,
             lambda context: (
                 VIEW3D_PT_tools_active._tools_select
                 if _defs_weight_paint.poll_select_mask(context)
                 else ()
             ),
-            None,
-            _defs_weight_paint.gradient,
         ],
         'PAINT_GPENCIL': [
             _defs_view3d_generic.cursor,