Sculpt toolbar: Group new Mask Lasso tool with the Mask Border tool
authorWilliam Reynish <billrey@me.com>
Fri, 7 Jun 2019 08:35:07 +0000 (10:35 +0200)
committerWilliam Reynish <billrey@me.com>
Fri, 7 Jun 2019 08:35:07 +0000 (10:35 +0200)
Also flip Simplify and Mask, so that all the mask-related tools are next to each other.

release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
source/blender/makesrna/intern/rna_brush.c

index 56e6536f3a23ae4f4c24ee7ef6e8018ef2548428..a2b96c9d6c75c744fbb53ffdee71c29fdbcdc92f 100644 (file)
@@ -1907,9 +1907,11 @@ class VIEW3D_PT_tools_active(ToolSelectPanelHelper, Panel):
         'SCULPT': [
             _defs_sculpt.generate_from_brushes,
             None,
+            (
+                _defs_sculpt.mask_border,
+                _defs_sculpt.mask_lasso,
+            ),
             _defs_sculpt.hide_border,
-            _defs_sculpt.mask_border,
-            _defs_sculpt.mask_lasso,
             None,
             *_tools_annotate,
         ],
index a049b7573c4cce152bca17c0db3d5828ae2b6ffb..d20b99e93e16ec65585506d194329977653eaef5 100644 (file)
@@ -89,8 +89,8 @@ const EnumPropertyItem rna_enum_brush_sculpt_tool_items[] = {
     {SCULPT_TOOL_NUDGE, "NUDGE", ICON_BRUSH_NUDGE, "Nudge", ""},
     {SCULPT_TOOL_ROTATE, "ROTATE", ICON_BRUSH_ROTATE, "Rotate", ""},
     {0, "", 0, NULL, NULL},
+    {SCULPT_TOOL_SIMPLIFY, "SIMPLIFY", ICON_BRUSH_DATA, "Simplify", ""},
     {SCULPT_TOOL_MASK, "MASK", ICON_BRUSH_MASK, "Mask", ""},
-    {SCULPT_TOOL_SIMPLIFY, "SIMPLIFY", ICON_BRUSH_DATA /* icon TODO */, "Simplify", ""},
     {0, NULL, 0, NULL, NULL},
 };