Skip to content

Commit

Permalink
Fix possible issue for transparency in landscapes (see #3512)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-w committed Jan 11, 2024
1 parent 800b280 commit 6274af3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/core/modules/LandscapeMgr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6274af3

Please sign in to comment.