From c98daef926d43bed3f9843a6b87f3e4e5c0bb571 Mon Sep 17 00:00:00 2001 From: ehofman Date: Fri, 2 Apr 2004 14:42:03 +0000 Subject: [PATCH] Frederic Bouvier: Add a pretrav callback to the first kid of geometry that should be the terrain_branch. The callback is a static function in FGTileMgr --- src/Scenery/tileentry.cxx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Scenery/tileentry.cxx b/src/Scenery/tileentry.cxx index 793694dcf..3076b32de 100644 --- a/src/Scenery/tileentry.cxx +++ b/src/Scenery/tileentry.cxx @@ -725,6 +725,9 @@ FGTileEntry::load( const string &base_path, bool is_base ) geometry, NULL, NULL, NULL, light_pts, true ) ) { + geometry->getKid( 0 )->setTravCallback( + SSG_CALLBACK_PRETRAV, + &FGTileMgr::tile_filter_cb ); new_tile -> addKid( geometry ); } else { delete geometry; @@ -752,6 +755,9 @@ FGTileEntry::load( const string &base_path, bool is_base ) taxi_lights, NULL, false ) ) { if ( geometry -> getNumKids() > 0 ) { + geometry->getKid( 0 )->setTravCallback( + SSG_CALLBACK_PRETRAV, + &FGTileMgr::tile_filter_cb ); new_tile -> addKid( geometry ); } else { delete geometry; -- 2.39.5