Skip to content

Commit

Permalink
Use isColorType for clarity
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Stone <[email protected]>
  • Loading branch information
jstone-lucasfilm authored Apr 30, 2024
1 parent d1c47b7 commit b0e87fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/Scripts/creatematerial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit b0e87fe

Please sign in to comment.