From cc825143a3f0d0e61e20ffb74bf4acd4cb443cdf Mon Sep 17 00:00:00 2001 From: Emma Broman Date: Mon, 11 Jan 2021 10:41:13 +0100 Subject: [PATCH] Bring back fading of sphere with only fade out threshold specified Without this, the milkyway sphere does not fade out at all --- modules/base/rendering/renderablesphere.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/base/rendering/renderablesphere.cpp b/modules/base/rendering/renderablesphere.cpp index 8ea072fac1..fdde7eeea7 100644 --- a/modules/base/rendering/renderablesphere.cpp +++ b/modules/base/rendering/renderablesphere.cpp @@ -282,7 +282,8 @@ RenderableSphere::RenderableSphere(const ghoul::Dictionary& dictionary) addProperty(_fadeInThreshold); } - if (dictionary.hasKey(FadeInThresholdInfo.identifier)) { + if (dictionary.hasKey(FadeInThresholdInfo.identifier) || + dictionary.hasKey(FadeOutThresholdInfo.identifier)) { _disableFadeInDistance.set(false); addProperty(_disableFadeInDistance); }