1
0
Fork 0

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
This commit is contained in:
ehofman 2004-04-02 14:42:03 +00:00
parent 924e95fec2
commit c98daef926

View file

@ -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;