[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 2399f825ce - Show all commits

View File

@ -383,6 +383,12 @@ class KITSU_OT_anim_update_output_coll(bpy.types.Operator):
output_coll.children.link(coll)
logger.info("%s linked in %s", coll.name, output_coll.name)
# Ensure Camera Rig is Linked
for coll in [col for col in bpy.data.collections]:
if coll.override_library:
if coll.override_library.hierarchy_root.name == "CA-camera_rig":
output_coll.children.link(coll)
self.report(
{"INFO"},
f"Found Asset Collections: {len(asset_colls)} | Added to output collection: {len(parents)}",