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:
parent
924e95fec2
commit
c98daef926
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue