mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
fix color NaN check
This commit is contained in:
parent
70dfb26418
commit
fd4a8fdd83
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue