Sculpt: Add pie menu for global automasking options
Global automasking options are usually turned on/off for quick adjustments both in brushes and filters, so it is convenient to have them in a pie menu. This uses the Alt + A shortcut. Reviewed By: dbystedt, HooglyBoogly Differential Revision: https://developer.blender.org/D9282
This commit is contained in:
parent
15cb67e0b0
commit
39be996452
|
@ -4456,6 +4456,7 @@ def km_sculpt(params):
|
|||
{"properties": [("data_path", 'tool_settings.sculpt.brush.use_smooth_stroke')]}),
|
||||
op_menu("VIEW3D_MT_angle_control", {"type": 'R', "value": 'PRESS'}),
|
||||
op_menu_pie("VIEW3D_MT_sculpt_mask_edit_pie", {"type": 'A', "value": 'PRESS'}),
|
||||
op_menu_pie("VIEW3D_MT_sculpt_automasking_pie", {"type": 'A', "alt": True,"value": 'PRESS'}),
|
||||
op_menu_pie("VIEW3D_MT_sculpt_face_sets_edit_pie", {"type": 'W', "value": 'PRESS'}),
|
||||
*_template_items_context_panel("VIEW3D_PT_sculpt_context_menu", params.context_menu_event),
|
||||
])
|
||||
|
|
|
@ -5285,6 +5285,21 @@ class VIEW3D_MT_sculpt_mask_edit_pie(Menu):
|
|||
op.filter_type = 'CONTRAST_DECREASE'
|
||||
op.auto_iteration_count = False
|
||||
|
||||
class VIEW3D_MT_sculpt_automasking_pie(Menu):
|
||||
bl_label = "Automasking"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
pie = layout.menu_pie()
|
||||
|
||||
tool_settings = context.tool_settings
|
||||
sculpt = tool_settings.sculpt
|
||||
|
||||
pie.prop(sculpt, "use_automasking_topology", text="Topology")
|
||||
pie.prop(sculpt, "use_automasking_face_sets", text="Face Sets")
|
||||
pie.prop(sculpt, "use_automasking_boundary_edges", text="Mesh Boundary")
|
||||
pie.prop(sculpt, "use_automasking_boundary_face_sets", text="Face Sets Boundary")
|
||||
|
||||
|
||||
class VIEW3D_MT_sculpt_face_sets_edit_pie(Menu):
|
||||
|
||||
|
@ -7572,6 +7587,7 @@ classes = (
|
|||
VIEW3D_MT_orientations_pie,
|
||||
VIEW3D_MT_proportional_editing_falloff_pie,
|
||||
VIEW3D_MT_sculpt_mask_edit_pie,
|
||||
VIEW3D_MT_sculpt_automasking_pie,
|
||||
VIEW3D_MT_wpaint_vgroup_lock_pie,
|
||||
VIEW3D_MT_sculpt_face_sets_edit_pie,
|
||||
VIEW3D_PT_active_tool,
|
||||
|
|
Loading…
Reference in New Issue