Merge pull request #773 from pypeclub/bugfix/maya-look-respect-color-space

Maya: Look - respect original texture colorspace when not using maketx
This commit is contained in:
Milan Kolar 2020-12-03 16:48:37 +01:00 committed by GitHub
commit 04bd7783f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,10 +172,11 @@ class ExtractLook(pype.api.Extractor):
cspace = files_metadata[filepath]["color_space"]
linearise = False
if cspace == "sRGB":
linearise = True
# set its file node to 'raw' as tx will be linearized
files_metadata[filepath]["color_space"] = "raw"
if do_maketx:
if cspace == "sRGB":
linearise = True
# set its file node to 'raw' as tx will be linearized
files_metadata[filepath]["color_space"] = "raw"
source, mode, hash = self._process_texture(
filepath,