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
This commit is contained in:
Patrick Foley
2023-04-16 15:04:58 -07:00
committed by Joseph Eagar
parent 45ef51d0fb
commit c08a9ec19f

View File

@@ -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()