UI: Collections: Rename & update Restrictions panel for consistency
This PR adds exclude_from_viewlayer to the properties collections panel and rearranges the items in it. "Restrictions" heading changed to "Visibility", similar to its use for Objects. View Layer items grouped into their own sub panel. See pull request for screenshots. Co-authored-by: Eqkoss <osmosepicturesanimation@gmail.com> Co-authored-by: Harley Acheson <harley.acheson@gmail.com> Co-authored-by: Jonas Holzman <jonas@holzman.fr> Pull Request: https://projects.blender.org/blender/blender/pulls/134143
This commit is contained in:
@@ -29,7 +29,7 @@ def lineart_make_line_type_entry(col, line_type, text_disp, expand, search_from)
|
||||
|
||||
|
||||
class COLLECTION_PT_collection_flags(CollectionButtonsPanel, Panel):
|
||||
bl_label = "Restrictions"
|
||||
bl_label = "Visibility"
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
@@ -37,14 +37,27 @@ class COLLECTION_PT_collection_flags(CollectionButtonsPanel, Panel):
|
||||
layout.use_property_decorate = False
|
||||
|
||||
collection = context.collection
|
||||
|
||||
layout.prop(collection, "hide_select", text="Selectable", toggle=False, invert_checkbox=True)
|
||||
|
||||
col = layout.column(heading="Show In", align=True)
|
||||
col.prop(collection, "hide_render", text="Renders", toggle=False, invert_checkbox=True)
|
||||
|
||||
|
||||
class COLLECTION_PT_viewlayer_flags(CollectionButtonsPanel, Panel):
|
||||
bl_label = "View Layer"
|
||||
bl_parent_id = "COLLECTION_PT_collection_flags"
|
||||
|
||||
def draw(self, context):
|
||||
vl = context.view_layer
|
||||
vlc = vl.active_layer_collection
|
||||
|
||||
col = layout.column(align=True)
|
||||
col.prop(collection, "hide_select", text="Selectable", toggle=False, invert_checkbox=True)
|
||||
col.prop(collection, "hide_render", toggle=False)
|
||||
layout = self.layout
|
||||
layout.use_property_split = True
|
||||
layout.use_property_decorate = False
|
||||
|
||||
col = layout.column(align=True)
|
||||
col.prop(vlc, "exclude", text="Include", toggle=False, invert_checkbox=True)
|
||||
col.prop(vlc, "holdout", toggle=False)
|
||||
col.prop(vlc, "indirect_only", toggle=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user