From fd4a8fdd833fea9e31a2ec39b28496a2290c7c32 Mon Sep 17 00:00:00 2001 From: David Back Date: Fri, 29 Jun 2018 15:33:55 -0700 Subject: [PATCH] fix color NaN check --- scripts/system/particle_explorer/particleExplorerTool.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/system/particle_explorer/particleExplorerTool.js b/scripts/system/particle_explorer/particleExplorerTool.js index b675d26ff6..80256a12e3 100644 --- a/scripts/system/particle_explorer/particleExplorerTool.js +++ b/scripts/system/particle_explorer/particleExplorerTool.js @@ -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);