mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix single frame publishing (from e.g. Maya)
Also fixes it for other hosts that use instance.data[`expectedFiles`] with the value being `list[dict[str, list[str]]]` (Basically the files per AOV, where the list of filenames is `list[str]` but the integrator and other areas really want a single `str` insteaf of `list[str]` if it's a single frame)
This commit is contained in:
parent
d759c9b41a
commit
b239cdd891
1 changed files with 4 additions and 4 deletions
|
|
@ -788,15 +788,15 @@ def _create_instances_for_aov(instance, skeleton, aov_filter, additional_data,
|
|||
colorspace = product.colorspace
|
||||
break
|
||||
|
||||
if isinstance(files, (list, tuple)):
|
||||
files = [os.path.basename(f) for f in files]
|
||||
if isinstance(collected_files, (list, tuple)):
|
||||
collected_files = [os.path.basename(f) for f in collected_files]
|
||||
else:
|
||||
files = os.path.basename(files)
|
||||
collected_files = os.path.basename(collected_files)
|
||||
|
||||
rep = {
|
||||
"name": ext,
|
||||
"ext": ext,
|
||||
"files": files,
|
||||
"files": collected_files,
|
||||
"frameStart": int(skeleton["frameStartHandle"]),
|
||||
"frameEnd": int(skeleton["frameEndHandle"]),
|
||||
# If expectedFile are absolute, we need only filenames
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue