Give the models properties as an argument to the init callback.
Modified Files: SGPagedLOD.cxx
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user