diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-05-01 21:12:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-05-01 23:33:10 +0300 |
commit | c052346fbf0e3bdfdd9dd48669985ea065e07185 (patch) | |
tree | 41203ce9c502012e318ce63516223b32b10f3195 /release/scripts/startup/bl_ui/space_topbar.py | |
parent | e1bd883df3c1d41630b96ee3f9b570480b30a1e8 (diff) |
UI: move object selector into 3D view
This matches the new convention for left-handed mode selectors,
however we're still undecided on exactly how this should work.
For now test this out as a convention for all space types.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_topbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_topbar.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py index 0189f9fc100..dad13ce9f1e 100644 --- a/release/scripts/startup/bl_ui/space_topbar.py +++ b/release/scripts/startup/bl_ui/space_topbar.py @@ -117,13 +117,12 @@ class TOPBAR_HT_lower_bar(Header): # Object Mode # ----------- + # Testing move to 3D header. + ''' object_mode = 'OBJECT' if object is None else object.mode act_mode_item = bpy.types.Object.bl_rna.properties['mode'].enum_items[object_mode] layout.operator_menu_enum("object.mode_set", "mode", text=act_mode_item.name, icon=act_mode_item.icon) - - def draw_center(self, context): - layout = self.layout - mode = context.mode + ''' # Active Tool # ----------- @@ -131,6 +130,10 @@ class TOPBAR_HT_lower_bar(Header): from .space_toolsystem_common import ToolSelectPanelHelper ToolSelectPanelHelper.draw_active_tool_header(context, layout) + def draw_center(self, context): + layout = self.layout + mode = context.mode + layout.separator() # Object Mode Options |