respect original c-space when not using maketx

This commit is contained in:
Ondrej Samohel 2020-12-02 19:53:54 +01:00
parent 806ffa74b7
commit a294b577e3
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

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,