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

View File

@ -314,10 +314,16 @@ class KITSU_OT_sqe_push_new_edit(bpy.types.Operator):
bl_idname = "kitsu.sqe_push_new_edit_comment" bl_idname = "kitsu.sqe_push_new_edit_comment"
bl_label = "Submit New Kitsu Edit Comment" bl_label = "Submit New Kitsu Edit Comment"
bl_description = "Creates a new edit comment on Edit task via ID." bl_description = "Creates a new edit comment on Edit task via ID."
def get_edit_entry_items(self: Any, context: bpy.types.Context) -> List[Tuple[str, str, str]]:
sorted_edits = []
active_project = cache.project_active_get()
def get_edit_entry_enum(self: Any, context: bpy.types.Context) -> List[Tuple[str, str, str]]: for edit in gazu.edit.get_all_edits_with_tasks():
edits = gazu.edit.get_all_edits() if (edit["project_id"] == active_project.id) and not edit['canceled']:
return [(item.get("id"), item.get("name"), f'Created at: "{item.get("created_at")}" {item.get("description")}') for item in edits] sorted_edits.append(edit)
return [(item.get("id"), item.get("name"), f'Created at: "{item.get("created_at")}" {item.get("description")}') for item in sorted_edits]
def get_edit_task_items(self: Any, context: bpy.types.Context) -> List[Tuple[str, str, str]]: def get_edit_task_items(self: Any, context: bpy.types.Context) -> List[Tuple[str, str, str]]:
tasks = gazu.task.all_tasks_for_edit(self.edit_entry) tasks = gazu.task.all_tasks_for_edit(self.edit_entry)