]> git.mxchange.org Git - simgear.git/blobdiff - simgear/scene/model/modellib.cxx
Add writeLocalData functions for internal scenegraph classes
[simgear.git] / simgear / scene / model / modellib.cxx
index 4da108a1d2c63065a013c1908805b104fa9b1e2b..a3a779fdff63c03c1e2291bc2773dc4d70d70052 100644 (file)
@@ -34,6 +34,8 @@
 
 #include "modellib.hxx"
 
+#include <simgear/math/SGMath.hxx>
+
 
 using namespace simgear;
 
@@ -66,8 +68,6 @@ SGModelLib::loadModel(const string &path,
     opt->setPropRoot(prop_root);
     opt->setModelData(data);
     osg::Node *n = readNodeFile(path, opt.get());
-    if(data)
-        data->modelLoaded(path, data->getConfigProperties(), n);
     if (n && n->getName().empty())
         n->setName("Direct loaded model \"" + path + "\"");
     return n;