heronarts / LX

Core library for 3D LED lighting engines
https://chromatik.co/
Other
41 stars 25 forks source link

Return normalized value of zero for single-int DiscreteParameter #89

Closed jkbelcher closed 1 year ago

jkbelcher commented 1 year ago

A DiscreteParameter can exist with a range of 1, ie a single value. Calling getNormalized() on this parameter was returning NaN from the divide by zero.

mcslee commented 1 year ago

Yikes, thx for catching.