Blender Kitsu: Add option to Exclude Collections from Output Collection #120

Merged
Nick Alberelli merged 9 commits from :feature/exclude-output-collections into main 2023-07-13 19:54:03 +02:00
Showing only changes of commit 57d2d334a9 - Show all commits

View File

@ -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)