Comment 1 for bug 688930

Revision history for this message
Bogdan Marinov (daggerstab) wrote :

SolarSystem::drawPointer() is not the only method using the type string. The other two are SolarSystem::setSelected() and SolarSystem::selectedObjectChange(). The SolarSystem class was simply not created with multiple object types in mind.

Anyway, the simpler solution for now is to have the child classes return "Planet", as the type is used only in SolarSystem. I've committed this as trunk revision 4900:
http://bazaar.launchpad.net/~stellarium/stellarium/trunk/revision/4900

Where else is the getType() function significant? Scripts?