Sculpt: Add Transform, Trim, and Mesh Filter operators to Sculpt menu #104718

Merged
Joseph Eagar merged 19 commits from Tarek-Yasser/blender:sculpt_mode_add_menu_operators into main 2023-03-08 01:18:34 +01:00
1 changed files with 41 additions and 2 deletions
Showing only changes of commit 7ddb21152a - Show all commits

View File

@ -3214,19 +3214,58 @@ class VIEW3D_MT_sculpt(Menu):
layout.separator()
# Toggle visibility
# Hide active face set
op = layout.operator("sculpt.face_set_change_visibility", text="Toggle Visibility")
op.mode = 'TOGGLE'
op = layout.operator("sculpt.face_set_change_visibility", text="Hide Active Face Set")
op.mode = 'HIDE_ACTIVE'
props = layout.operator("paint.hide_show", text="Show All")
props.action = 'SHOW'
props.area = 'ALL'
op = layout.operator("sculpt.face_set_change_visibility", text="Invert Visible")
op.mode = 'INVERT'
props = layout.operator("paint.hide_show", text="Hide Masked")
props.action = 'HIDE'
props.area = 'MASKED'
layout.separator()
layout.operator("sculpt.trim_box_gesture", text="Box Trim")
layout.operator("sculpt.trim_lasso_gesture", text="Lasso Trim")
# Box Add
# Lasso Add
layout.operator("sculpt.project_line_gesture", text="Line Project")
layout.separator()
# Fair Positions
props = layout.operator("sculpt.face_set_edit", text="Fair Positions")
props.mode = "FAIR_POSITIONS"
# Fair Tangency
props = layout.operator("sculpt.face_set_edit", text="Fair Tangency")
props.mode = "FAIR_TANGENCY"
layout.separator()
# Smooth
# Surface Smooth
# Inflate
# Relax Topology
# Relax Face Sets
# Sharpen
# Enhance Details
# Erase Multires Displacement
# Randomize
layout.separator()
layout.menu("VIEW3D_MT_sculpt_set_pivot", text="Set Pivot")
layout.separator()