mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 07:37:31 +02:00
fix color fallbacks
This commit is contained in:
parent
dd09ec1656
commit
e74d30ce22
1 changed files with 1 additions and 1 deletions
|
@ -108,7 +108,7 @@ ParticleExplorerTool = function() {
|
||||||
var fallbackValue = updatedSettings[fallbackProp];
|
var fallbackValue = updatedSettings[fallbackProp];
|
||||||
if (fallbackValue) {
|
if (fallbackValue) {
|
||||||
var optionalProp = optionalProps[i];
|
var optionalProp = optionalProps[i];
|
||||||
if (isNaN(entityProps[optionalProp]) || (fallbackProp === "color" && isNaN(entityProps[optionalProp].red))) {
|
if ((fallbackProp !== "color" && isNaN(entityProps[optionalProp])) || (fallbackProp === "color" && isNaN(entityProps[optionalProp].red))) {
|
||||||
that.updatedActiveParticleProperties[optionalProp] = fallbackValue;
|
that.updatedActiveParticleProperties[optionalProp] = fallbackValue;
|
||||||
needsUpdate = true;
|
needsUpdate = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue