Skip to content

Commit 09d9a78

Browse files
committed
Ignore atmospheric extinction for exoplanets when distribution mode is enabled (fix #4857)
1 parent e27e411 commit 09d9a78

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

plugins/Exoplanets/src/Exoplanet.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -595,7 +595,7 @@ Vec3f Exoplanet::getInfoColor(void) const
595595
float Exoplanet::getVMagnitude(const StelCore* core) const
596596
{
597597
Q_UNUSED(core)
598-
return (distributionMode ? 4.f : (isVMagnitudeDefined() ? static_cast<float>(Vmag) : 6.f));
598+
return (isVMagnitudeDefined() ? static_cast<float>(Vmag) : 6.f);
599599
}
600600

601601
bool Exoplanet::isVMagnitudeDefined() const
@@ -641,7 +641,7 @@ void Exoplanet::draw(StelCore* core, StelPainter *painter)
641641

642642
StelSkyDrawer* sd = core->getSkyDrawer();
643643
const float mlimit = sd->getLimitMagnitude();
644-
const float mag = getVMagnitudeWithExtinction(core);
644+
const float mag = (distributionMode ? 4.f : getVMagnitudeWithExtinction(core));
645645
const float shift = 8.f;
646646

647647
if (mag <= mlimit)

0 commit comments

Comments
 (0)