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

View File

@ -356,6 +356,10 @@ class KITSU_OT_sqe_push_new_edit(bpy.types.Operator):
layout.prop(self, "render_name") layout.prop(self, "render_name")
def execute(self, context: bpy.types.Context) -> Set[str]: def execute(self, context: bpy.types.Context) -> Set[str]:
if self.task == "":
self.report({"ERROR"}, "Selected edit doesn't have any task associated with it .")
return {"CANCELLED"}
# Build render_path # Build render_path
render_dir = bpy.path.abspath(self.render_dir) render_dir = bpy.path.abspath(self.render_dir)
render_name = f"{self.render_name.replace('.','_')}.mp4" render_name = f"{self.render_name.replace('.','_')}.mp4"