diff --git a/simgear/scene/model/SGPagedLOD.cxx b/simgear/scene/model/SGPagedLOD.cxx index 96a0656d..545aadb7 100644 --- a/simgear/scene/model/SGPagedLOD.cxx +++ b/simgear/scene/model/SGPagedLOD.cxx @@ -56,7 +56,7 @@ bool SGPagedLOD::addChild(osg::Node *child) { osg::ref_ptr d = opts->getModelData(); if(d.valid()) - d->modelLoaded(getFileName(getNumChildren()-1), 0, + d->modelLoaded(getFileName(getNumChildren()-1), opts->getPropRoot(), this); } return true; diff --git a/simgear/scene/model/modellib.cxx b/simgear/scene/model/modellib.cxx index 95644351..3fbced89 100644 --- a/simgear/scene/model/modellib.cxx +++ b/simgear/scene/model/modellib.cxx @@ -67,7 +67,7 @@ SGModelLib::loadModel(const string &path, 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;