Allow 'property' as well as 'prop' to be used in XMLauto <enable> blocks.
This commit is contained in:
parent
1d0e9d268a
commit
321bbeb2e8
1 changed files with 4 additions and 0 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue