From 321bbeb2e860de751f144e1945f654a24180b968 Mon Sep 17 00:00:00 2001 From: James Turner Date: Thu, 27 May 2010 15:20:37 +0100 Subject: [PATCH] Allow 'property' as well as 'prop' to be used in XMLauto blocks. --- src/Autopilot/xmlauto.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Autopilot/xmlauto.cxx b/src/Autopilot/xmlauto.cxx index e1bedb568..9c91bff15 100644 --- a/src/Autopilot/xmlauto.cxx +++ b/src/Autopilot/xmlauto.cxx @@ -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 ); } -- 2.39.5