mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
UI: Split sculpt mask operators into own menu
Differential Revision: https://developer.blender.org/D5997 Reviewers: Brecht van Lommel, Pablo Dobarro
This commit is contained in:
parent
0bdf4e2f2d
commit
a498a5494c
1 changed files with 16 additions and 7 deletions
|
|
@ -794,6 +794,8 @@ class VIEW3D_MT_editor_menus(Menu):
|
|||
elif obj:
|
||||
if mode_string != 'PAINT_TEXTURE':
|
||||
layout.menu("VIEW3D_MT_%s" % mode_string.lower())
|
||||
if mode_string == 'SCULPT':
|
||||
layout.menu("VIEW3D_MT_mask")
|
||||
|
||||
else:
|
||||
layout.menu("VIEW3D_MT_object")
|
||||
|
|
@ -2822,20 +2824,29 @@ class VIEW3D_MT_sculpt(Menu):
|
|||
props.action = 'SHOW'
|
||||
props.area = 'ALL'
|
||||
|
||||
props = layout.operator("paint.hide_show", text="Hide Bounding Box")
|
||||
props.action = 'HIDE'
|
||||
props.area = 'INSIDE'
|
||||
|
||||
props = layout.operator("paint.hide_show", text="Show Bounding Box")
|
||||
props.action = 'SHOW'
|
||||
props.area = 'INSIDE'
|
||||
|
||||
props = layout.operator("paint.hide_show", text="Hide Bounding Box")
|
||||
props.action = 'HIDE'
|
||||
props.area = 'INSIDE'
|
||||
|
||||
props = layout.operator("paint.hide_show", text="Hide Masked")
|
||||
props.action = 'HIDE'
|
||||
props.area = 'MASKED'
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.menu("VIEW3D_MT_sculpt_set_pivot", text="Set Pivot")
|
||||
|
||||
|
||||
class VIEW3D_MT_mask(Menu):
|
||||
bl_label = "Mask"
|
||||
|
||||
def draw(self, _context):
|
||||
layout = self.layout
|
||||
|
||||
props = layout.operator("paint.mask_flood_fill", text="Invert Mask")
|
||||
props.mode = 'INVERT'
|
||||
|
||||
|
|
@ -2898,9 +2909,6 @@ class VIEW3D_MT_sculpt(Menu):
|
|||
|
||||
props = layout.operator("sculpt.dirty_mask", text='Dirty Mask')
|
||||
|
||||
layout.separator()
|
||||
layout.menu("VIEW3D_MT_sculpt_set_pivot", text="Set Pivot")
|
||||
|
||||
|
||||
class VIEW3D_MT_sculpt_set_pivot(Menu):
|
||||
bl_label = "Sculpt Set Pivot"
|
||||
|
|
@ -6808,6 +6816,7 @@ classes = (
|
|||
VIEW3D_MT_paint_weight,
|
||||
VIEW3D_MT_sculpt,
|
||||
VIEW3D_MT_sculpt_set_pivot,
|
||||
VIEW3D_MT_mask,
|
||||
VIEW3D_MT_particle,
|
||||
VIEW3D_MT_particle_context_menu,
|
||||
VIEW3D_MT_particle_showhide,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue