[Bf-blender-cvs] [a593cc046c3] blender2.8: UI: put active tool buttons in center topbar region.

Brecht Van Lommel noreply at git.blender.org
Sat Apr 28 10:44:38 CEST 2018


Commit: a593cc046c330ca07401cf04569a13b6864e670a
Author: Brecht Van Lommel
Date:   Sat Apr 28 01:20:42 2018 +0200
Branches: blender2.8
https://developer.blender.org/rBa593cc046c330ca07401cf04569a13b6864e670a

UI: put active tool buttons in center topbar region.

===================================================================

M	release/scripts/startup/bl_ui/space_topbar.py

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_topbar.py b/release/scripts/startup/bl_ui/space_topbar.py
index 816f87be687..365dbf3a9a8 100644
--- a/release/scripts/startup/bl_ui/space_topbar.py
+++ b/release/scripts/startup/bl_ui/space_topbar.py
@@ -107,8 +107,7 @@ class TOPBAR_HT_lower_bar(Header):
         elif region.alignment == 'RIGHT':
             self.draw_right(context)
         else:
-            # 'NONE' currently not used
-            pass
+            self.draw_center(context)
 
     def draw_left(self, context):
         layout = self.layout
@@ -122,10 +121,10 @@ class TOPBAR_HT_lower_bar(Header):
         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
 
-        layout.separator()
-
         # Active Tool
         # -----------



More information about the Bf-blender-cvs mailing list