From c08a9ec19fb8b7d286693352f65ddcbed73dc87a Mon Sep 17 00:00:00 2001 From: Patrick Foley Date: Sun, 16 Apr 2023 15:04:58 -0700 Subject: [PATCH] Sculpt: updated Mask and Face Set menu operators Changed the menu operators: Expand Mask by Topology (hotkey Shift A) Expand Mask by Normals (hotkey Shift Alt A) Expand Face Set by Topology (hotkey Shift W) Expand Active Face Set (hotkey Shift Alt W) so that their hotkeys would appear in their menu entries. Resolves #104023 Co-authored-by: DisquietingFridge <30654622+DisquietingFridge@users.noreply.github.com> Pull Request: #104568 Rebased for main instead of sculpt-dev --- scripts/startup/bl_ui/space_view3d.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/startup/bl_ui/space_view3d.py b/scripts/startup/bl_ui/space_view3d.py index 9bbf7b0e6c0..9a9df65d2db 100644 --- a/scripts/startup/bl_ui/space_view3d.py +++ b/scripts/startup/bl_ui/space_view3d.py @@ -3380,12 +3380,15 @@ class VIEW3D_MT_mask(Menu): props = layout.operator("sculpt.expand", text="Expand Mask by Topology") props.target = 'MASK' props.falloff_type = 'GEODESIC' - props.invert = True + props.invert = False + props.use_auto_mask = False + props.use_mask_preserve = True props = layout.operator("sculpt.expand", text="Expand Mask by Normals") props.target = 'MASK' props.falloff_type = 'NORMALS' props.invert = False + props.use_mask_preserve = True layout.separator() @@ -3443,12 +3446,14 @@ class VIEW3D_MT_face_sets(Menu): props.target = 'FACE_SETS' props.falloff_type = 'GEODESIC' props.invert = False + props.use_mask_preserve = False props.use_modify_active = False props = layout.operator("sculpt.expand", text="Expand Active Face Set") props.target = 'FACE_SETS' props.falloff_type = 'BOUNDARY_FACE_SET' props.invert = False + props.use_mask_preserve = False props.use_modify_active = True layout.separator()