From 0083c96125926d4e76525ff1bbd08a3f1f20307b Mon Sep 17 00:00:00 2001 From: Pablo Dobarro Date: Tue, 10 Sep 2019 15:11:33 +0200 Subject: Sculpt: Mask Expand operator This operator is a combined version of mask expand and mask by normal from the sculpt branch. It can be used to quickly isolate parts of a model based on topology or curvature. - Shift + A starts the operator in topology mode from the active vertex - Shift + Alt + A starts the operator in curvature mode from the active vertex Reviewed By: brecht Differential Revision: https://developer.blender.org/D5657 --- .../presets/keyconfig/keymap_data/blender_default.py | 4 ++++ release/scripts/startup/bl_ui/space_view3d.py | 14 ++++++++++++++ 2 files changed, 18 insertions(+) (limited to 'release') diff --git a/release/scripts/presets/keyconfig/keymap_data/blender_default.py b/release/scripts/presets/keyconfig/keymap_data/blender_default.py index 0bc1219fa4d..582757f2168 100644 --- a/release/scripts/presets/keyconfig/keymap_data/blender_default.py +++ b/release/scripts/presets/keyconfig/keymap_data/blender_default.py @@ -3848,6 +3848,10 @@ def km_sculpt(params): ("paint.mask_lasso_gesture", {"type": 'LEFTMOUSE', "value": 'PRESS', "shift": True, "ctrl": True}, None), ("wm.context_toggle", {"type": 'M', "value": 'PRESS', "ctrl": True}, {"properties": [("data_path", 'scene.tool_settings.sculpt.show_mask')]}), + ("sculpt.mask_expand", {"type": 'A', "value": 'PRESS', "shift": True}, + {"properties": [("use_normals", False), ("keep_previous_mask", False), ("invert", True), ("smooth_iterations", 2)]}), + ("sculpt.mask_expand", {"type": 'A', "value": 'PRESS', "shift": True, 'alt': True}, + {"properties": [("use_normals", True), ("keep_previous_mask", True), ("invert", False), ("smooth_iterations", 0)]}), # Dynamic topology ("sculpt.dynamic_topology_toggle", {"type": 'D', "value": 'PRESS', "ctrl": True}, None), ("sculpt.set_detail_size", {"type": 'D', "value": 'PRESS', "shift": True}, None), diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 2333c8589c3..21c2631c904 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -2872,6 +2872,20 @@ class VIEW3D_MT_sculpt(Menu): layout.separator() + props = layout.operator("sculpt.mask_expand", text="Expand Mask By Topology") + props.use_normals = False + props.keep_previous_mask = False + props.invert = True + props.smooth_iterations = 2 + + props = layout.operator("sculpt.mask_expand", text="Expand Mask By Curvature") + props.use_normals = True + props.keep_previous_mask = True + props.invert = False + props.smooth_iterations = 0 + + layout.separator() + props = layout.operator("sculpt.dirty_mask", text='Dirty Mask') -- cgit v1.2.3