}
} else if ( token == "OBJECT_SIGN" ) {
- //node = SGMakeSign(staticOptions->getMaterialLib(), name);
- signBuilder.addSign(SGGeod::fromDegM(lon, lat, elev), hdg, name);
+ signBuilder.addSign(SGGeod::fromDegM(lon, lat, elev), hdg, name);
} else {
SG_LOG( SG_TERRAIN, SG_ALERT, absoluteFileName
<< ": Unknown token '" << token << "'" );
in >> ::skipeol;
}
- group.addChild(signBuilder.getSignsGroup());
+ if (signBuilder.getSignsGroup())
+ group.addChild(signBuilder.getSignsGroup());
return has_base;
}