[Bf-blender-cvs] [ab33692bc26] master: UI: Collections Visibility panel tweaks
Dalai Felinto
noreply at git.blender.org
Tue Apr 30 23:22:07 CEST 2019
Commit: ab33692bc26bf0caf3376f6caa763dfb158ada94
Author: Dalai Felinto
Date: Tue Apr 30 18:19:45 2019 -0300
Branches: master
https://developer.blender.org/rBab33692bc26bf0caf3376f6caa763dfb158ada94
UI: Collections Visibility panel tweaks
1. No need to repeat the title inside the panel (this was needed when we
had this as a popup menu).
2. No need to call it "Collections Visibility" since we are already
under the "View" category. It is "Collections" now, short and sweet.
===================================================================
M release/scripts/startup/bl_ui/space_view3d.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index b6e24671515..519217bf61c 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -4766,7 +4766,7 @@ class VIEW3D_PT_collections(Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'
bl_category = "View"
- bl_label = "Collections Visibility"
+ bl_label = "Collections"
bl_options = {'DEFAULT_CLOSED'}
def _draw_collection(self, layout, view_layer, collection, index):
@@ -4817,9 +4817,6 @@ class VIEW3D_PT_collections(Panel):
layout = self.layout
layout.use_property_split = False
- layout.label(text="Collections Visibility")
- layout.column()
-
view_layer = context.view_layer
# We pass index 0 here beause the index is increased
# so the first real index is 1
More information about the Bf-blender-cvs
mailing list