Skip to content

Commit

Permalink
fix coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
henrysky committed Dec 24, 2024
1 parent 0917ba2 commit 11b3fa3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/core/modules/Planet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4918,14 +4918,16 @@ void Planet::drawOrbit(const StelCore* core)
orbit[d] = getEclipticPos(calc_date);
}
}
else {
else
{
// Update the orbit positions to the current planet date.
computeOrbit();
}
const Vec3d savePos = orbit[ORBIT_SEGMENTS/2];
if (closeOrbit)
{
if ((!keplerOrbit || keplerOrbit->getEccentricity()<=0.3) && !fromMoonPerspective) {
if ((!keplerOrbit || keplerOrbit->getEccentricity()<=0.3) && !fromMoonPerspective)
{
// special case - use current Planet position as center vertex so that draws
// on its orbit all the time (since orbit is shown as segmented rather than smooth curve)
orbit[ORBIT_SEGMENTS/2]=getHeliocentricEclipticPos()+aberrationPush;
Expand Down

0 comments on commit 11b3fa3

Please sign in to comment.