fix color NaN check

This commit is contained in:
David Back 2018-06-29 15:33:55 -07:00
parent 70dfb26418
commit fd4a8fdd83

View file

@ -64,10 +64,10 @@ ParticleExplorerTool = function() {
if (isNaN(properties.radiusFinish)) {
properties.radiusFinish = properties.particleRadius;
}
if (isNaN(properties.colorStart) || isNaN(properties.colorStart.red)) {
if (isNaN(properties.colorStart.red)) {
properties.colorStart = properties.color;
}
if (isNaN(properties.colorFinish) || isNaN(properties.colorFinish.red)) {
if (isNaN(properties.colorFinish.red)) {
properties.colorFinish = properties.color;
}
sendParticleProperties(properties);