Show Reference Points labels (Closes: #489)

pull/3/head
Hleb Valoshka 2019-11-05 10:13:00 +03:00
parent 00ee0d4bcd
commit cf945d7b6e
1 changed files with 4 additions and 1 deletions

View File

@ -7875,7 +7875,10 @@ void Renderer::notifyWatchers() const
void Renderer::updateBodyVisibilityMask()
{
int flags = 0;
// Bodies with type `Invisible' (e.g. ReferencePoints) are not drawn,
// but if their property `Visible' is set they have visible labels,
// so we make `Body::Invisible' class visible.
int flags = Body::Invisible;
if ((renderFlags & Renderer::ShowPlanets) != 0)
flags |= Body::Planet;