Blender Kitsu: Add option to Exclude Collections from Output Collection #120
@ -418,12 +418,7 @@ class KITSU_OT_anim_update_output_coll(bpy.types.Operator):
|
||||
active_shot = None
|
||||
output_coll_name = None
|
||||
output_coll = None
|
||||
asset_colls = NotImplementedError
|
||||
|
||||
exclude_collections: bpy.props.BoolProperty(
|
||||
name="Exclude Collections",
|
||||
description="Exclude selectied collections from the 'anim.output' collection",
|
||||
)
|
||||
asset_colls = None
|
||||
|
||||
@classmethod
|
||||
def poll(cls, context: bpy.types.Context) -> bool:
|
||||
@ -463,14 +458,11 @@ class KITSU_OT_anim_update_output_coll(bpy.types.Operator):
|
||||
return [coll for coll in missing if coll not in childs]
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
layout.prop(self, "exclude_collections")
|
||||
if not self.exclude_collections:
|
||||
return
|
||||
parents = self.get_collections(context)
|
||||
# Must display collections that already exist in output collection so user can exclude them
|
||||
for col in self.output_coll.children:
|
||||
parents.append(col)
|
||||
layout = self.layout
|
||||
box = layout.box()
|
||||
box.label(text="Select Collection to Exclude", icon="OUTLINER_COLLECTION")
|
||||
column = box.column(align=True)
|
||||
|
Loading…
Reference in New Issue
Block a user