]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/material/EffectBuilder.cxx
Random buildings - initial commit.
[simgear.git] / simgear / scene / material / EffectBuilder.cxx
index 79ebb2482bb1d9b21c1907ed13fc204ccb12d289..635fde3608c7fd82b6111aaa88de2fdca7598339 100644 (file)
@@ -2,7 +2,7 @@
 #  include <simgear_config.h>
 #endif
 
-#include <simgear/scene/model/SGReaderWriterXMLOptions.hxx>
+#include <simgear/scene/util/SGReaderWriterOptions.hxx>
 #include <simgear/scene/tgdb/userdata.hxx>
 
 #include <simgear/math/SGMath.hxx>
@@ -43,7 +43,7 @@ const SGPropertyNode* getEffectPropertyChild(Effect* effect,
 }
 
 string getGlobalProperty(const SGPropertyNode* prop,
-                         const SGReaderWriterXMLOptions* options)
+                         const SGReaderWriterOptions* options)
 {
     if (!prop)
         return string();
@@ -54,7 +54,7 @@ string getGlobalProperty(const SGPropertyNode* prop,
     SGPropertyNode_ptr propRoot;
     if (propName[0] == '/') {
         return propName;
-    } else if ((propRoot = options->getPropRoot())) {
+    } else if ((propRoot = options->getPropertyNode())) {
         string result = propRoot->getPath();
         result.append("/");
         result.append(propName);