Change sky browser to use id's instead of indices to get the images

This commit is contained in:
Ylva Selling
2022-12-16 11:28:08 -05:00
parent 80c0ed8d92
commit 42f1b48372
9 changed files with 121 additions and 99 deletions
+2 -2
View File
@@ -318,8 +318,8 @@ void SkyBrowserModule::setHoverCircle(SceneGraphNode* circle) {
disableHoverCircle();
}
void SkyBrowserModule::moveHoverCircle(int i, bool useScript) {
const ImageData& image = _dataHandler.image(i);
void SkyBrowserModule::moveHoverCircle(const std::string& imageUrl, bool useScript) {
const ImageData& image = _dataHandler.image(imageUrl);
// Only move and show circle if the image has coordinates
if (!(_hoverCircle && image.hasCelestialCoords && _isCameraInSolarSystem)) {