diff options
author | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-04 01:23:29 +0300 |
---|---|---|
committer | Pablo Dobarro <pablodp606@gmail.com> | 2020-06-09 20:09:50 +0300 |
commit | cb9de95d61b32f90788875f20e046095bb6310ad (patch) | |
tree | 51d8772fc2220467ba41ade9a21243efbba1b313 /release | |
parent | 77789a1904917ac4ed76e966311744d9f65563a7 (diff) |
Sculpt: Face Set Edit Operator
This operator performs an edit operation in the active face set defined
by the cursor position and updates the visibility. For now, it has a
Grow and Shrink operations, similar to Select More/Less in edit mode or
to the mask filter Grow/Shrink modes. More operations can be added in
the future.
In multires, this updates the visibility of an entire face from the base
mesh at once, which makes it very convenient to edit the visible area
without manipulating the face set directly.
Reviewed By: sergey
Differential Revision: https://developer.blender.org/D7367
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/presets/keyconfig/keymap_data/blender_default.py | 4 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 8 |
2 files changed, 12 insertions, 0 deletions
diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py index 1d43c486bca..878c3bfb01f 100644 --- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -4318,6 +4318,10 @@ def km_sculpt(params): {"properties": [("mode", 'SHOW_ALL')]}), ("sculpt.mask_expand", {"type": 'W', "value": 'PRESS', "shift": True}, {"properties": [("use_normals", False), ("keep_previous_mask", False), ("invert", False), ("smooth_iterations", 0), ("create_face_set", True)]}), + ("sculpt.face_set_edit", {"type": 'W', "value": 'PRESS', "ctrl": True}, + {"properties": [("mode", "GROW")]}), + ("sculpt.face_set_edit", {"type": 'W', "value": 'PRESS', "ctrl": True, "alt": True}, + {"properties": [("mode", "SHRINK")]}), # Subdivision levels *_template_items_object_subdivision_set(), ("object.subdivision_set", {"type": 'PAGE_UP', "value": 'PRESS'}, diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 7f1047cec74..c982d8e93a9 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -3126,6 +3126,14 @@ class VIEW3D_MT_face_sets(Menu): layout.separator() + op = layout.operator("sculpt.face_set_edit", text='Grow Face Set') + op.mode = 'GROW' + + op = layout.operator("sculpt.face_set_edit", text='Shrink Face Set') + op.mode = 'SHRINK' + + layout.separator() + op = layout.operator("sculpt.face_set_change_visibility", text='Invert Visible Face Sets') op.mode = 'INVERT' |