hound fix

This commit is contained in:
Kayla Man 2023-02-24 12:49:39 +08:00
parent ffb4b64137
commit 8bbe10e18d

View file

@ -3579,7 +3579,7 @@ def image_info(file_path):
from arnold import (
AiTextureGetBitDepth,
AiTextureGetFormat
)
)
# Get Texture Information
img_info = {'filename': file_path}
if os.path.isfile(file_path):
@ -3608,7 +3608,7 @@ def guess_colorspace(img_info):
AI_TYPE_BYTE,
AI_TYPE_INT,
AI_TYPE_UINT
)
)
try:
if img_info['bit_depth'] <= 16:
if img_info['format'] in (AI_TYPE_BYTE, AI_TYPE_INT, AI_TYPE_UINT): # noqa