for the modelLoaded call. MAy be this needs to be revisited, but in any
case better than constant zero.
Modified Files:
simgear/scene/model/SGPagedLOD.cxx
simgear/scene/model/modellib.cxx
{
osg::ref_ptr<SGModelData> d = opts->getModelData();
if(d.valid())
- d->modelLoaded(getFileName(getNumChildren()-1), 0,
+ d->modelLoaded(getFileName(getNumChildren()-1), opts->getPropRoot(),
this);
}
return true;
opt->setModelData(data);
osg::Node *n = readNodeFile(path, opt.get());
if(data)
- data->modelLoaded(path, 0, n);
+ data->modelLoaded(path, prop_root, n);
if (n && n->getName().empty())
n->setName("Direct loaded model \"" + path + "\"");
return n;