You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding a Color behaviour to an emitter with 0 or 0x0 as a colour causes it to crash: TypeError: Cannot read property 'getValue' of null.
0x000001 works.
Reason:
In src/math/ColorSpan.js Line 60 - you check if you have a colours object. 0 will return false therefore returning null.
The text was updated successfully, but these errors were encountered:
@davidpox just noting that ColorSpan takes either the string 'random' or an array of strings as its constructor arg. Since createColorSpan is basically just a factory for creating ColorSpan instances, I think you'd need to pass '0' or '0x0', I haven't tried it though.
Version: 4.0.1.
Adding a Color behaviour to an emitter with
0
or0x0
as a colour causes it to crash:TypeError: Cannot read property 'getValue' of null
.0x000001 works.
Reason:
In
src/math/ColorSpan.js
Line 60 - you check if you have a colours object. 0 will return false therefore returning null.The text was updated successfully, but these errors were encountered: