From 6274af3a7fb63726f03fcf6c88104b4ef7b2db07 Mon Sep 17 00:00:00 2001 From: "Alexander V. Wolf" Date: Fri, 12 Jan 2024 06:32:27 +0700 Subject: [PATCH] Fix possible issue for transparency in landscapes (see #3512) --- src/core/modules/LandscapeMgr.hpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/core/modules/LandscapeMgr.hpp b/src/core/modules/LandscapeMgr.hpp index 1c872a5f97ad6..d18600e3fd80f 100644 --- a/src/core/modules/LandscapeMgr.hpp +++ b/src/core/modules/LandscapeMgr.hpp @@ -576,11 +576,10 @@ public slots: flagLandscapeUseTransparency=b; emit flagLandscapeUseTransparencyChanged(b); } - if (b==false) + if (!flagLandscapeUseTransparency) // equals to false landscape->setTransparency(0.0); } - /* //This method has been removed, use StelSkyDrawer::getBortleScaleIndex instead, or StelMainScriptAPI::getBortleScaleIndex in scripts //Also, if required, please use StelSkyDrawer::setBortleScaleIndex or StelMainScriptAPI::setBortleScaleIndex instead of LandscapeMgr::setAtmosphereBortleLightPollution