[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

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