mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-20 10:54:14 +01:00
OSGEarth: Remove reference to caching. Uses old API.
This commit is contained in:
parent
43f85d9617
commit
7d8c61d33d
@ -281,15 +281,7 @@ void OsgEarthItemRenderer::initScene()
|
||||
|
||||
//setup caching
|
||||
osgEarth::MapNode *mapNode = osgEarth::MapNode::findMapNode(m_model.get());
|
||||
if (mapNode) {
|
||||
osgEarth::TMSCacheOptions cacheOptions;
|
||||
//cacheOptions.cacheOnly() = true;
|
||||
QString cacheDir = Utils::PathUtils().GetStoragePath()+QLatin1String("osgEarth_cache");
|
||||
cacheOptions.setPath(cacheDir.toStdString());
|
||||
osgEarth::Cache *cache= new osgEarth::TMSCache(cacheOptions);
|
||||
|
||||
mapNode->getMap()->setCache(cache);
|
||||
} else {
|
||||
if (!mapNode) {
|
||||
qWarning() << Q_FUNC_INFO << sceneFile << " doesn't look like an osgEarth file";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user