mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-26 05:42:15 +01:00
fix the bug of failing to extract look when UDIM format used in AiImage
This commit is contained in:
parent
cb5dd41fba
commit
ec157e0a2a
1 changed files with 10 additions and 0 deletions
|
|
@ -436,6 +436,16 @@ class ExtractLook(openpype.api.Extractor):
|
|||
# set color space to raw if we linearized it
|
||||
color_space = "Raw"
|
||||
else:
|
||||
|
||||
# if the files are unresolved from `source`
|
||||
# assume color space from the first file of
|
||||
# the resource
|
||||
first_file = next(iter(resource.get("files", [])), None)
|
||||
if not first_file:
|
||||
# No files for this resource? Can this happen? Should this error?
|
||||
continue
|
||||
|
||||
filepath = os.path.normpath(first_file)
|
||||
# if the files are unresolved
|
||||
if files_metadata[filepath]["color_space"] == "Raw":
|
||||
# set color space to raw if we linearized it
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue