Modified Files:
src/FDM/groundcache.cxx src/Scenery/scenery.cxx
gp.material = 0;
backfaceCulling = false;
// XXX state set might be higher up in scene graph
- gp.material = globals->get_matlib()->findMaterial(drawable->getStateSet());
+ gp.material = SGMaterialLib::findMaterial(drawable->getStateSet());
if (gp.material)
gp.type = (gp.material->get_solid() ? FGInterface::Solid
: FGInterface::Water);
alt = elevation;
if (material) {
const osg::StateSet* stateSet = hit.getDrawable()->getStateSet();
- *material = globals->get_matlib()->findMaterial(stateSet);
+ *material = SGMaterialLib::findMaterial(stateSet);
}
}
}