Use localized names at bottom right

pull/1203/head
Levin Li 2021-12-05 17:06:38 +08:00
parent 2793756f91
commit b9b02beb0e
2 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ class ModelGeometry : public Geometry
bool isOpaque() const override;
bool isNormalized() const override;
void loadTextures();
void loadTextures() override;
private:
std::unique_ptr<cmod::Model> m_model;

View File

@ -3023,13 +3023,13 @@ static string getSelectionName(const Selection& sel, const Universe& univ)
switch (sel.getType())
{
case Selection::Type_Body:
return sel.body()->getName(false);
return sel.body()->getName(true);
case Selection::Type_DeepSky:
return univ.getDSOCatalog()->getDSOName(sel.deepsky(), false);
return univ.getDSOCatalog()->getDSOName(sel.deepsky(), true);
case Selection::Type_Star:
return univ.getStarCatalog()->getStarName(*sel.star(), true);
case Selection::Type_Location:
return sel.location()->getName(false);
return sel.location()->getName(true);
default:
return {};
}