Give the models properties as an argument to the init callback.

Modified Files:
 	SGPagedLOD.cxx
This commit is contained in:
frohlich
2009-05-22 14:53:57 +00:00
committed by Tim Moore
parent 13a2b92a32
commit 01c64fd554

View File

@@ -56,7 +56,8 @@ bool SGPagedLOD::addChild(osg::Node *child)
{
osg::ref_ptr<SGModelData> d = opts->getModelData();
if(d.valid())
d->modelLoaded(getFileName(getNumChildren()-1), 0, this);
d->modelLoaded(getFileName(getNumChildren()-1), d->getProperties(),
this);
}
return true;
}