[Blender_Kitsu] Add Operators to cleanup Animation Files #38

Merged
Nick Alberelli merged 12 commits from feature/enforce_naming into main 2023-05-09 17:12:20 +02:00
Showing only changes of commit 0eca5c0123 - Show all commits

View File

@ -369,6 +369,10 @@ class KITSU_OT_anim_update_output_coll(bpy.types.Operator):
missing: List[bpy.types.Collection] = [] missing: List[bpy.types.Collection] = []
output_coll_childs = list(opsdata.traverse_collection_tree(output_coll)) output_coll_childs = list(opsdata.traverse_collection_tree(output_coll))
# Clear Out Output Collection before Starting
for collection in output_coll.children:
output_coll.children.unlink(collection)
# Check if all found asset colls are in output coll. # Check if all found asset colls are in output coll.
for coll in asset_colls: for coll in asset_colls:
if coll in output_coll_childs: if coll in output_coll_childs: