]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/tgdb/TileEntry.cxx
Remove using std:: from the metar header, remove HTTP support, add very basic unit...
[simgear.git] / simgear / scene / tgdb / TileEntry.cxx
index 0b16242b4341e6c383531664c41dceb01d882ac7..6c7c54c21580f33c8a17faf3e1e353435bad9381 100644 (file)
@@ -415,3 +415,20 @@ TileEntry::removeFromSceneGraph()
         }
     }
 }
+
+void
+TileEntry::refresh()
+{
+    osg::Group *parent = NULL;
+    // find the nodes branch parent
+    if ( _node->getNumParents() > 0 ) {
+        // find the first parent (should only be one)
+        parent = _node->getParent( 0 ) ;
+        if( parent ) {
+            parent->removeChild( _node.get() );
+        }
+    }
+    _node = new osg::LOD;
+    if (parent)
+        parent->addChild(_node.get());
+}