Fixed bug that caused barycenters to be visible as small spheres.

ver1_6_1
Chris Laurel 2009-01-09 10:44:11 +00:00
parent 56f8119b54
commit bea799547d
1 changed files with 1 additions and 2 deletions

View File

@ -7832,7 +7832,7 @@ void Renderer::renderPlanet(Body& body,
float discSizeInPixels = body.getRadius() /
(max(nearPlaneDistance, altitude) * pixelSize);
if (discSizeInPixels > 1)
if (discSizeInPixels > 1 && body.hasVisibleGeometry())
{
RenderProperties rp;
@ -7909,7 +7909,6 @@ void Renderer::renderPlanet(Body& body,
// Calculate eclipse circumstances
if ((renderFlags & ShowEclipseShadows) != 0 &&
body.hasVisibleGeometry() &&
body.getSystem() != NULL)
{
PlanetarySystem* system = body.getSystem();