Fix issue where custom job name was being ignored

This commit is contained in:
Brett Williams
2024-08-04 11:47:56 -05:00
parent 220b3fcc25
commit 86977b9d6d
3 changed files with 20 additions and 17 deletions

View File

@@ -62,7 +62,10 @@ class BlenderRenderWorker(BaseRenderWorker):
# Export format
export_format = self.args.get('export_format', None) or 'JPEG'
path_without_ext = os.path.splitext(self.output_path)[0] + "_"
main_part, ext = os.path.splitext(self.output_path)
# Remove the extension only if it is not composed entirely of digits
path_without_ext = main_part if not ext[1:].isdigit() else self.output_path
path_without_ext += "_"
cmd.extend(['-E', blender_engine, '-o', path_without_ext, '-F', export_format])
# set frame range