[Blender_Kitsu] Pub_Edit_Rev: Fix Filenames #13

Merged
Nick Alberelli merged 4 commits from :fix/publish-edit-rev-filename into master 2023-04-18 04:59:52 +02:00
Showing only changes of commit ba78043a97 - Show all commits

View File

@ -2501,6 +2501,13 @@ class KITSU_OT_vse_publish_edit_revision(bpy.types.Operator):
prod_name = active_project.name.lower().replace(' ', '')
render_name = f"{prod_name}_v{revision}.mp4"
render_path = Path(render_dir).joinpath(render_name)
# check path exists
if render_path.is_file():
self.report(
{"ERROR"},
f"File '{render_name}' already exists at '{self.render_dir}'"
)
return {"CANCELLED"}
# Render Sequence to .mp4
with override_render_path(self, context, render_path.as_posix()):