Blender Kitsu: Add option to Exclude Collections from Output Collection #120
@ -460,7 +460,6 @@ class KITSU_OT_anim_update_output_coll(bpy.types.Operator):
|
||||
if coll_comp in coll_childs:
|
||||
childs.append(coll_comp)
|
||||
|
||||
# TODO check why this only returns some collections after running operator once
|
||||
return [coll for coll in missing if coll not in childs]
|
||||
|
||||
def draw(self, context):
|
||||
@ -469,6 +468,9 @@ class KITSU_OT_anim_update_output_coll(bpy.types.Operator):
|
||||
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)
|
||||
for col in parents:
|
||||
layout.prop(col.blender_kitsu_exclusions, "exclude", text=col.name)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user