Makes it a bit easier to find out what is wrong with the values.

This commit is contained in:
Erik van Blokland 2017-08-05 20:37:37 +02:00
parent b9151ffacb
commit 4762865cac

View File

@ -14,7 +14,7 @@ def normalizeValue(v, triple):
0.5
"""
lower, default, upper = triple
assert lower <= default <= upper, "invalid axis values"
assert lower <= default <= upper, "invalid axis values: %3.3f, %3.3f %3.3f"%(lower, default, upper)
v = max(min(v, upper), lower)
if v == default:
v = 0.