#include "SGReaderWriterXML.hxx"
#include "SGReaderWriterXMLOptions.hxx"
-//#include "model.hxx"
#include "modellib.hxx"
+#include <simgear/math/SGMath.hxx>
+
using namespace simgear;
opt->setPropRoot(prop_root);
opt->setModelData(data);
osg::Node *n = readNodeFile(path, opt.get());
- if(data)
- data->modelLoaded(path, data->getProperties(), n);
+ if (n && n->getName().empty())
+ n->setName("Direct loaded model \"" + path + "\"");
return n;
}
SGModelData *data)
{
SGPagedLOD *plod = new SGPagedLOD;
+ plod->setName("Paged LOD for \"" + path + "\"");
plod->setFileName(0, path);
plod->setRange(0, 0.0, 50.0*SG_NM_TO_METER);