[Bf-blender-cvs] [4b2dec18b9d] temp-lineart-contained: Line Art: Tweak collection tab properties
Hans Goudey
noreply at git.blender.org
Mon Mar 15 04:28:37 CET 2021
Commit: 4b2dec18b9d941b17c69a63d59f9449416eba197
Author: Hans Goudey
Date: Sun Mar 14 23:28:20 2021 -0400
Branches: temp-lineart-contained
https://developer.blender.org/rB4b2dec18b9d941b17c69a63d59f9449416eba197
Line Art: Tweak collection tab properties
- Use property split
- Use the same oder as in the outliner
===================================================================
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 95c45826b02..ecf7df0cbb8 100644
--- a/release/scripts/startup/bl_ui/properties_collection.py
+++ b/release/scripts/startup/bl_ui/properties_collection.py
@@ -46,19 +46,21 @@ class COLLECTION_PT_collection_flags(CollectionButtonsPanel, Panel):
def draw(self, context):
layout = self.layout
+ layout.use_property_split = True
+ layout.use_property_decorate = False
+
collection = context.collection
vl = context.view_layer
vlc = vl.active_layer_collection
- row = layout.row()
- col = row.column(align=True)
- col.prop(vlc, "holdout", toggle=False)
- col.prop(vlc, "indirect_only", toggle=False)
- row = layout.row()
- col = row.column(align=True)
+ col = layout.column(align=True)
col.prop(collection, "hide_select", text="Selectable", toggle=False, invert_checkbox=True)
col.prop(collection, "hide_render", toggle=False)
+ col = layout.column(align=True)
+ col.prop(vlc, "holdout", toggle=False)
+ col.prop(vlc, "indirect_only", toggle=False)
+
class COLLECTION_PT_lineart_collection(CollectionButtonsPanel, Panel):
bl_label = "Collection Line Art"
More information about the Bf-blender-cvs
mailing list