[Bf-blender-cvs] [f35d38e5a7] render-layers: Collections Editor: populate header with operators

Dalai Felinto noreply at git.blender.org
Mon Jan 30 18:26:35 CET 2017


Commit: f35d38e5a71500f1180a6d8878970c637b675214
Author: Dalai Felinto
Date:   Mon Jan 30 18:23:51 2017 +0100
Branches: render-layers
https://developer.blender.org/rBf35d38e5a71500f1180a6d8878970c637b675214

Collections Editor: populate header with operators

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

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

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

diff --git a/release/scripts/startup/bl_ui/space_collections.py b/release/scripts/startup/bl_ui/space_collections.py
index e46684b62b..9b612ce2ec 100644
--- a/release/scripts/startup/bl_ui/space_collections.py
+++ b/release/scripts/startup/bl_ui/space_collections.py
@@ -28,7 +28,13 @@ class COLLECTIONS_HT_header(Header):
         layout = self.layout
 
         layout.template_header()
-        layout.label(text="Work in progress")
+
+        row = layout.row(align=True)
+        row.operator("collections.collection_new", text="", icon='NEW')
+        row.operator("collections.override_new", text="", icon='LINK_AREA')
+        row.operator("collections.collection_link", text="", icon='LINKED')
+        row.operator("collections.collection_unlink", text="", icon='UNLINKED')
+        row.operator("collections.delete", text="", icon='X')
 
 
 if __name__ == "__main__":  # only for live edit.




More information about the Bf-blender-cvs mailing list