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 df603f50e8 - Show all commits

View File

@ -397,6 +397,15 @@ class KITSU_OT_unlink_collection_with_string(bpy.types.Operator):
return {"FINISHED"} return {"FINISHED"}
class KITSU_PG_exclude_collection(bpy.types.PropertyGroup):
exclude: bpy.props.BoolProperty(
name="Exclude",
description="",
default=False,
override={"LIBRARY_OVERRIDABLE"},
)
class KITSU_OT_anim_update_output_coll(bpy.types.Operator): class KITSU_OT_anim_update_output_coll(bpy.types.Operator):
bl_idname = "kitsu.anim_update_output_coll" bl_idname = "kitsu.anim_update_output_coll"
bl_label = "Update Output Collection" bl_label = "Update Output Collection"
@ -474,14 +483,19 @@ classes = [
KITSU_OT_anim_update_output_coll, KITSU_OT_anim_update_output_coll,
KITSU_OT_anim_enforce_naming_convention, KITSU_OT_anim_enforce_naming_convention,
KITSU_OT_unlink_collection_with_string, KITSU_OT_unlink_collection_with_string,
KITSU_PG_exclude_collection,
] ]
def register(): def register():
for cls in classes: for cls in classes:
bpy.utils.register_class(cls) bpy.utils.register_class(cls)
bpy.types.Collection.blender_kitsu_exclusions = bpy.props.PointerProperty(
type=KITSU_PG_exclude_collection
)
def unregister(): def unregister():
for cls in reversed(classes): for cls in reversed(classes):
bpy.utils.unregister_class(cls) bpy.utils.unregister_class(cls)
del bpy.types.Collection.blender_kitsu_exclusions