[Bf-blender-cvs] [bcbe332] soc-2016-layer_manager: Use alignment for operator buttons in layer manager header

TheOnlyJoey noreply at git.blender.org
Sun May 29 19:45:20 CEST 2016


Commit: bcbe33229ae3f8068f1a5f9acba0f6b859381795
Author: TheOnlyJoey
Date:   Sun May 29 19:44:33 2016 +0200
Branches: soc-2016-layer_manager
https://developer.blender.org/rBbcbe33229ae3f8068f1a5f9acba0f6b859381795

Use alignment for operator buttons in layer manager header

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_layers.py b/release/scripts/startup/bl_ui/space_layers.py
index 1c4f1b5..1c2a55e 100644
--- a/release/scripts/startup/bl_ui/space_layers.py
+++ b/release/scripts/startup/bl_ui/space_layers.py
@@ -28,9 +28,11 @@ class LAYERS_HT_header(Header):
         layout = self.layout
 
         layout.template_header()
-        layout.operator("layers.layer_add", text="", icon='NEW')
-        layout.operator("layers.group_add", text="", icon='NEWFOLDER')
-        layout.operator("layers.remove", text="", icon='X')
+
+        row = layout.row(align=True)
+        row.operator("layers.layer_add", text="", icon='NEW')
+        row.operator("layers.group_add", text="", icon='NEWFOLDER')
+        row.operator("layers.remove", text="", icon='X')
 
 if __name__ == "__main__":  # only for live edit.
     bpy.utils.register_module(__name__)




More information about the Bf-blender-cvs mailing list