[Blender_Kitsu] Publish VSE Edit as Revision on Kitsu #7
@ -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):
|
class KITSU_OT_sqe_push_new_sequence(bpy.types.Operator):
|
||||||
bl_idname = "kitsu.sqe_push_new_sequence"
|
bl_idname = "kitsu.sqe_push_new_sequence"
|
||||||
bl_label = "Submit New Sequence"
|
bl_label = "Submit New Sequence"
|
||||||
@ -2405,6 +2429,7 @@ class KITSU_OT_sqe_change_strip_source(bpy.types.Operator):
|
|||||||
classes = [
|
classes = [
|
||||||
KITSU_OT_sqe_push_new_sequence,
|
KITSU_OT_sqe_push_new_sequence,
|
||||||
KITSU_OT_sqe_push_new_shot,
|
KITSU_OT_sqe_push_new_shot,
|
||||||
|
KITSU_OT_sqe_push_new_edit,
|
||||||
KITSU_OT_sqe_push_shot_meta,
|
KITSU_OT_sqe_push_shot_meta,
|
||||||
KITSU_OT_sqe_uninit_strip,
|
KITSU_OT_sqe_uninit_strip,
|
||||||
KITSU_OT_sqe_unlink_shot,
|
KITSU_OT_sqe_unlink_shot,
|
||||||
|
Loading…
Reference in New Issue
Block a user