MainWindow: Fixed clouds shown (and should not) after refreshing map with grid from projection enabled and cloud map visualization unchecked

This commit is contained in:
matlabbe
2016-05-26 12:35:02 -04:00
parent 0d61c12dcd
commit 30fecd412c

View File

@@ -1874,6 +1874,7 @@ void MainWindow::updateMapCloud(
else if(_cachedSignatures.contains(iter->first))
{
this->createAndAddCloudToMap(iter->first, iter->second, uValue(mapIds, iter->first, -1));
_cloudViewer->setCloudVisibility(cloudName.c_str(), _cloudViewer->isVisible() && _preferencesDialog->isCloudsShown(0));
}
}
else if(viewerClouds.contains(cloudName))