matlib["RWY_WHITE_LIGHTS"] = new FGNewMat(rwy_white_lights);
// For backwards compatibility ... remove someday
matlib["RUNWAY_LIGHTS"] = new FGNewMat(rwy_white_lights);
+ matlib["RWY_LIGHTS"] = new FGNewMat(rwy_white_lights);
// end of backwards compatitibilty
// hard coded runway vasi light state
new ssgVtxTable ( GL_TRIANGLES, vl, nl, NULL, cl );
FGNewMat *newmat = material_lib.find( material );
- // FGNewMat *newmat = material_lib.find( "IrrCropPastureCover" );
- leaf->setState( newmat->get_state() );
+
+ if ( newmat != NULL ) {
+ leaf->setState( newmat->get_state() );
+ } else {
+ SG_LOG( SG_TERRAIN, SG_ALERT, "Warning: can't material = "
+ << material );
+ }
return leaf;
}
// Add runway lights to scene graph if any exist
if ( rwy_lights_range->getNumKids() > 0 ) {
- SG_LOG( SG_TERRAIN, SG_INFO, "adding runway lights" );
+ SG_LOG( SG_TERRAIN, SG_DEBUG, "adding runway lights" );
rwy_lights_transform->addKid( rwy_lights_range );
rwy_lights_transform->setTransform( &sgcoord );
}