Fixed bug 1738359 Barycenter not included in URL Path
parent
de297cfa12
commit
281176ec53
|
@ -398,10 +398,12 @@ static std::string getBodyName(Universe* universe, Body* body)
|
|||
{
|
||||
std::string name = body->getName();
|
||||
PlanetarySystem* parentSystem = body->getSystem();
|
||||
Body* parentBody = NULL;
|
||||
const Body* parentBody = NULL;
|
||||
|
||||
if (parentSystem != NULL)
|
||||
parentBody = parentSystem->getPrimaryBody();
|
||||
else
|
||||
parentBody = body->getOrbitBarycenter();
|
||||
|
||||
while (parentBody != NULL)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue