forked from bartvdbraak/blender
Sculpt: Update menu entries for new Expand operator
Sculpt menus were using the legacy expand operator. This updates all entries to use the new one. It does not make sense to use Expand from the menus as it relies on the brush cursor position, but now all Expand shortcuts are listed in the UI. Reviewed By: JacquesLucke Differential Revision: https://developer.blender.org/D10952
This commit is contained in:
parent
4baf3964ae
commit
1a81693d38
@ -3090,19 +3090,15 @@ class VIEW3D_MT_mask(Menu):
|
||||
|
||||
layout.separator()
|
||||
|
||||
props = layout.operator("sculpt.mask_expand", text="Expand Mask by Topology")
|
||||
props.use_normals = False
|
||||
props.keep_previous_mask = False
|
||||
props = layout.operator("sculpt.expand", text="Expand Mask by Topology")
|
||||
props.target = 'MASK'
|
||||
props.falloff_type = 'GEODESIC'
|
||||
props.invert = True
|
||||
props.smooth_iterations = 2
|
||||
props.create_face_set = False
|
||||
|
||||
props = layout.operator("sculpt.mask_expand", text="Expand Mask by Curvature")
|
||||
props.use_normals = True
|
||||
props.keep_previous_mask = True
|
||||
props = layout.operator("sculpt.expand", text="Expand Mask by Normals")
|
||||
props.target = 'MASK'
|
||||
props.falloff_type = 'NORMALS'
|
||||
props.invert = False
|
||||
props.smooth_iterations = 0
|
||||
props.create_face_set = False
|
||||
|
||||
layout.separator()
|
||||
|
||||
@ -3156,6 +3152,20 @@ class VIEW3D_MT_face_sets(Menu):
|
||||
|
||||
layout.separator()
|
||||
|
||||
props = layout.operator("sculpt.expand", text="Expand Face Set by Topology")
|
||||
props.target = 'FACE_SETS'
|
||||
props.falloff_type = 'GEODESIC'
|
||||
props.invert = 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_modify_active = True
|
||||
|
||||
layout.separator()
|
||||
|
||||
op = layout.operator("mesh.face_set_extract", text='Extract Face Set')
|
||||
|
||||
layout.separator()
|
||||
|
Loading…
Reference in New Issue
Block a user