[Blender_Kitsu] Publish VSE Edit as Revision on Kitsu #7

Merged
Nick Alberelli merged 28 commits from :feature/upload_render_to_kitsu into master 2023-04-17 19:02:15 +02:00
Showing only changes of commit 5b818313ce - Show all commits

View File

@ -308,6 +308,30 @@ class KITSU_OT_sqe_push_new_shot(bpy.types.Operator):
)
class KITSU_OT_sqe_push_new_edit(bpy.types.Operator):
bl_idname = "kitsu.sqe_push_new_edit"
bl_label = "Submit New Kitsu Edit"
bl_description = "Creates a new edit on Kitsu server."
confirm: bpy.props.BoolProperty(name="confirm")
@classmethod
def poll(cls, context: bpy.types.Context) -> bool:
return bool(
prefs.session_auth(context)
and cache.project_active_get()
)
def execute(self, context: bpy.types.Context) -> Set[str]:
self.report(
{"INFO"},
f"Submitted new edit", #TODO Add name of new edit
)
return {"FINISHED"}
class KITSU_OT_sqe_push_new_sequence(bpy.types.Operator):
bl_idname = "kitsu.sqe_push_new_sequence"
bl_label = "Submit New Sequence"
@ -2405,6 +2429,7 @@ class KITSU_OT_sqe_change_strip_source(bpy.types.Operator):
classes = [
KITSU_OT_sqe_push_new_sequence,
KITSU_OT_sqe_push_new_shot,
KITSU_OT_sqe_push_new_edit,
KITSU_OT_sqe_push_shot_meta,
KITSU_OT_sqe_uninit_strip,
KITSU_OT_sqe_unlink_shot,