[Bf-blender-cvs] [64b07e866a] render-layers: Add icon to collection panel

Dalai Felinto noreply at git.blender.org
Tue Jan 31 11:46:59 CET 2017


Commit: 64b07e866a1454123a20c3be50353ec5c4fd0cc0
Author: Dalai Felinto
Date:   Tue Jan 31 10:52:09 2017 +0100
Branches: render-layers
https://developer.blender.org/rB64b07e866a1454123a20c3be50353ec5c4fd0cc0

Add icon to collection panel

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

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

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

diff --git a/release/scripts/startup/bl_ui/properties_collection.py b/release/scripts/startup/bl_ui/properties_collection.py
index e71cb264f2..d67d694aec 100644
--- a/release/scripts/startup/bl_ui/properties_collection.py
+++ b/release/scripts/startup/bl_ui/properties_collection.py
@@ -38,9 +38,9 @@ class COLLECTION_PT_context_collection(CollectionButtonsPanel, Panel):
         collection = context.layer_collection
         name = collection.name
         if name == 'Master Collection':
-            layout.label(text=name)
+            layout.label(text=name, icon='COLLAPSEMENU')
         else:
-            layout.prop(collection, "name")
+            layout.prop(collection, "name", text="", icon='COLLAPSEMENU')
 
 
 class COLLECTION_UL_objects(UIList):




More information about the Bf-blender-cvs mailing list