[Blender_Kitsu] Pub_Edit_Rev: Fix Filenames #13
@ -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()):
|
||||
|
Loading…
Reference in New Issue
Block a user