1
0
Fork 0

Allow 'property' as well as 'prop' to be used in XMLauto <enable> blocks.

This commit is contained in:
James Turner 2010-05-27 15:20:37 +01:00
parent 1d0e9d268a
commit 321bbeb2e8

View file

@ -261,6 +261,10 @@ void FGXMLAutoComponent::parseNode(SGPropertyNode* aNode)
if( (prop = child->getChild("condition")) != NULL ) {
_condition = sgReadCondition(fgGetNode("/"), prop);
} else {
if ( (prop = child->getChild( "property" )) != NULL ) {
enable_prop = fgGetNode( prop->getStringValue(), true );
}
if ( (prop = child->getChild( "prop" )) != NULL ) {
enable_prop = fgGetNode( prop->getStringValue(), true );
}