1
1

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: blender/blender#104568
This commit is contained in:
2023-04-16 23:58:45 +02:00
committed by Joseph Eagar
parent e9151dc96a
commit 912f61f9f5

View File

@@ -3288,12 +3288,15 @@ class VIEW3D_MT_mask(Menu):
props = layout.operator("sculpt.expand", text="Expand Mask by Topology") props = layout.operator("sculpt.expand", text="Expand Mask by Topology")
props.target = 'MASK' props.target = 'MASK'
props.falloff_type = 'GEODESIC' 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 = layout.operator("sculpt.expand", text="Expand Mask by Normals")
props.target = 'MASK' props.target = 'MASK'
props.falloff_type = 'NORMALS' props.falloff_type = 'NORMALS'
props.invert = False props.invert = False
props.use_mask_preserve = True
layout.separator() layout.separator()
@@ -3351,12 +3354,14 @@ class VIEW3D_MT_face_sets(Menu):
props.target = 'FACE_SETS' props.target = 'FACE_SETS'
props.falloff_type = 'GEODESIC' props.falloff_type = 'GEODESIC'
props.invert = False props.invert = False
props.use_mask_preserve = False
props.use_modify_active = False props.use_modify_active = False
props = layout.operator("sculpt.expand", text="Expand Active Face Set") props = layout.operator("sculpt.expand", text="Expand Active Face Set")
props.target = 'FACE_SETS' props.target = 'FACE_SETS'
props.falloff_type = 'BOUNDARY_FACE_SET' props.falloff_type = 'BOUNDARY_FACE_SET'
props.invert = False props.invert = False
props.use_mask_preserve = False
props.use_modify_active = True props.use_modify_active = True
layout.separator() layout.separator()