]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/props.hxx
Effects in models working for transparent materials and chrome animation
[simgear.git] / simgear / props / props.hxx
index ee2e6b6f25f75da225ac2b21088f7ce5cc5f2222..e32d9a64d0811fcb5837220cb073b6c5f1203737 100644 (file)
@@ -1927,13 +1927,26 @@ inline bool SGPropertyNode::setValue(const T& val,
 }
 
 /**
- * Utility function for creation of a child property node
+ * Utility function for creation of a child property node.
  */
 inline SGPropertyNode* makeChild(SGPropertyNode* parent, const char* name,
                                  int index = 0)
 {
     return parent->getChild(name, index, true);
 }
+
+/**
+ * Utility function for creation of a child property node using a
+ * relative path.
+ */
+namespace simgear
+{
+template<typename StringType>
+inline SGPropertyNode* makeNode(SGPropertyNode* parent, const StringType& name)
+{
+    return parent->getNode(name, true);
+}
+}
 #endif // __PROPS_HXX
 
 // end of props.hxx