diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2021-04-11 19:16:32 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2021-04-13 21:18:33 +0300 |
commit | 1a81693d38a41b231c0c6c561edad41e5a3f1520 (patch) | |
tree | 6a8991b638c232f38eb736822b4b7edc6d1e4cab | |
parent | 4baf3964aee251a491a0315a104b234515a6dd0e (diff) |
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
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 7c81c57cf2c..a8402af4a28 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -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() |