OP-7470 - fix for single frame rendering (#6056)

This commit is contained in:
Petr Kalis 2023-12-18 12:28:44 +01:00 committed by GitHub
parent a26e575ce0
commit 443d107b0e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -146,11 +146,15 @@ class FusionRenderLocal(
staging_dir = os.path.dirname(path)
files = [os.path.basename(f) for f in expected_files]
if len(expected_files) == 1:
files = files[0]
repre = {
"name": ext[1:],
"ext": ext[1:],
"frameStart": f"%0{padding}d" % start,
"files": [os.path.basename(f) for f in expected_files],
"files": files,
"stagingDir": staging_dir,
}