mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
fix type check
This commit is contained in:
parent
3c726393fc
commit
bc83a61365
1 changed files with 1 additions and 1 deletions
|
|
@ -612,7 +612,7 @@ def get_load_color_for_family(family, settings=None):
|
|||
else:
|
||||
raise ValueError("Invalid color definition {}".format(str(color)))
|
||||
|
||||
if type(red, int):
|
||||
if isinstance(red, int):
|
||||
red = red / 255.0
|
||||
green = green / 255.0
|
||||
blue = blue / 255.0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue