#include "SGReaderWriterXML.hxx"
#include "SGReaderWriterXMLOptions.hxx"
-//#include "model.hxx"
#include "modellib.hxx"
osg::Node *n = readNodeFile(path, opt.get());
if(data)
data->modelLoaded(path, data->getProperties(), n);
+ if (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);