From 506ae69b50379082e5c5b784d7b1536aaea65975 Mon Sep 17 00:00:00 2001 From: Philippe Renon Date: Sun, 13 Sep 2015 16:47:40 +0200 Subject: [PATCH] LP-29 restored AutoClipPlaneCullCallback feature --- ground/gcs/src/libs/osgearth/osgQtQuick/OSGViewport.cpp | 4 ++-- ground/gcs/src/share/osgearth/arcgis.earth | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/ground/gcs/src/libs/osgearth/osgQtQuick/OSGViewport.cpp b/ground/gcs/src/libs/osgearth/osgQtQuick/OSGViewport.cpp index 7e47cff12..726d4fe57 100644 --- a/ground/gcs/src/libs/osgearth/osgQtQuick/OSGViewport.cpp +++ b/ground/gcs/src/libs/osgearth/osgQtQuick/OSGViewport.cpp @@ -196,10 +196,10 @@ public: // TODO map handling should not be done here osgEarth::MapNode *mapNode = osgEarth::MapNode::findMapNode(node); - if (false && mapNode) { + if (mapNode) { qDebug() << "OSGViewport::attach - found map node" << mapNode; - // install AutoClipPlaneCullCallback : computes near/far planes based on scene geometry qDebug() << "OSGViewport::attach - set AutoClipPlaneCullCallback on camera"; + // install AutoClipPlaneCullCallback : computes near/far planes based on scene geometry // TODO will the AutoClipPlaneCullCallback be destroyed ? // TODO does it need to be added to the map node or to the view ? cullCallback = new osgEarth::Util::AutoClipPlaneCullCallback(mapNode); diff --git a/ground/gcs/src/share/osgearth/arcgis.earth b/ground/gcs/src/share/osgearth/arcgis.earth index 688fd943a..020cbf9d1 100644 --- a/ground/gcs/src/share/osgearth/arcgis.earth +++ b/ground/gcs/src/share/osgearth/arcgis.earth @@ -4,8 +4,7 @@ - - +