1
0
Fork 0

Ingore unhandled top level elements instead of not loading the autopilot. This (re-)enables usage of <params> at top level and <property alias="../params/foo"/>

This commit is contained in:
torsten 2009-12-18 11:43:14 +00:00 committed by Tim Moore
parent 2b3e07cc5f
commit 50adab32c1

View file

@ -961,10 +961,10 @@ bool FGXMLAutopilot::build( SGPropertyNode_ptr config_props ) {
components.push_back( new FGPredictor( node ) );
} else if ( name == "filter" ) {
components.push_back( new FGDigitalFilter( node ) );
} else {
SG_LOG( SG_ALL, SG_ALERT, "Unknown top level section: "
<< name );
return false;
// } else {
// SG_LOG( SG_ALL, SG_ALERT, "Unknown top level section: "
// << name );
// return false;
}
}