UI: move mode options to the topbar

Remove toolbar panels which have items available in menus.
This commit is contained in:
2018-04-25 08:16:21 +02:00
parent b00d971efe
commit ca49a9edce
2 changed files with 19 additions and 159 deletions

View File

@@ -115,6 +115,10 @@ class TOPBAR_HT_lower_bar(Header):
mode = context.mode
# Example of how toolsettings can be accessed as pop-overs.
# TODO(campbell): editing options should be after active tool options
# (obviously separated for from the users POV)
if mode == 'SCULPT':
layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context="", category="Tools")
elif mode == 'PAINT_VERTEX':
@@ -124,6 +128,16 @@ class TOPBAR_HT_lower_bar(Header):
elif mode == 'PAINT_TEXTURE':
layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context="", category="Tools")
elif mode == 'EDIT_ARMATURE':
layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context=".armature_edit", category="")
elif mode == 'EDIT_CURVE':
layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context=".curve_edit", category="")
elif mode == 'EDIT_MESH':
layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context=".mesh_edit", category="")
elif mode == 'POSE':
layout.popover_group(space_type='VIEW_3D', region_type='TOOLS', context=".posemode", category="")
def draw_right(self, context):
layout = self.layout