[Blender_Kitsu] Add Operators to cleanup Animation Files #38
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user