[Bf-blender-cvs] [9e3cf0c2e8] blender2.8: Draw buttons for editing collections in outliner
Julian Eisel
noreply at git.blender.org
Thu Feb 9 20:40:18 CET 2017
Commit: 9e3cf0c2e86daa3b9eecc94a2f35c03260c7e7af
Author: Julian Eisel
Date: Thu Feb 9 20:39:58 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB9e3cf0c2e86daa3b9eecc94a2f35c03260c7e7af
Draw buttons for editing collections in outliner
===================================================================
M release/scripts/startup/bl_ui/space_outliner.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_outliner.py b/release/scripts/startup/bl_ui/space_outliner.py
index 6f7c535fe2..eb3cef8012 100644
--- a/release/scripts/startup/bl_ui/space_outliner.py
+++ b/release/scripts/startup/bl_ui/space_outliner.py
@@ -59,6 +59,14 @@ class OUTLINER_HT_header(Header):
row.label(text="No Keying Set active")
elif space.display_mode == 'ORPHAN_DATA':
layout.operator("outliner.orphans_purge")
+ elif space.display_mode == 'COLLECTIONS':
+ 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')
class OUTLINER_MT_editor_menus(Menu):
More information about the Bf-blender-cvs
mailing list