mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Fix variable name sat -> sat_str
`sat` is actually undefined in the else statement
This commit is contained in:
parent
a7d82ecbc0
commit
6815eb4e80
1 changed files with 2 additions and 2 deletions
|
|
@ -296,7 +296,7 @@ class HSLColor:
|
|||
if "%" in sat_str:
|
||||
sat = float(sat_str.rstrip("%")) / 100
|
||||
else:
|
||||
sat = float(sat)
|
||||
sat = float(sat_str)
|
||||
|
||||
if "%" in light_str:
|
||||
light = float(light_str.rstrip("%")) / 100
|
||||
|
|
@ -350,7 +350,7 @@ class HSLAColor:
|
|||
if "%" in sat_str:
|
||||
sat = float(sat_str.rstrip("%")) / 100
|
||||
else:
|
||||
sat = float(sat)
|
||||
sat = float(sat_str)
|
||||
|
||||
if "%" in light_str:
|
||||
light = float(light_str.rstrip("%")) / 100
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue