From b0e87fe9256eb32ac2ef654814e38dc796a908f3 Mon Sep 17 00:00:00 2001 From: Jonathan Stone Date: Mon, 29 Apr 2024 21:38:41 -0700 Subject: [PATCH] Use isColorType for clarity Signed-off-by: Jonathan Stone --- python/Scripts/creatematerial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/Scripts/creatematerial.py b/python/Scripts/creatematerial.py index d9781c357e..2b536720d5 100644 --- a/python/Scripts/creatematerial.py +++ b/python/Scripts/creatematerial.py @@ -177,7 +177,7 @@ def buildDocument(textureFiles, mtlxFile, shadingModel, colorspace, useTiledImag imageNode = nodeGraph.addNode(imageNodeCategory, textureName, inputType) # Set color space. - if 'color' in inputType.lower(): + if shaderInput.isColorType(): imageNode.setColorSpace(colorspace) # Set file path.