[Blender_Kitsu] Publish VSE Edit as Revision on Kitsu #7
@ -315,9 +315,15 @@ class KITSU_OT_sqe_push_new_edit(bpy.types.Operator):
|
|||||||
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_enum(self: Any, context: bpy.types.Context) -> List[Tuple[str, str, str]]:
|
def get_edit_entry_items(self: Any, context: bpy.types.Context) -> List[Tuple[str, str, str]]:
|
||||||
edits = gazu.edit.get_all_edits()
|
sorted_edits = []
|
||||||
return [(item.get("id"), item.get("name"), f'Created at: "{item.get("created_at")}" {item.get("description")}') for item in 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]]:
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user