Changed the image reading so that it leverages the osgDB::Input::readImage() method
to ensure that it picks up on any local paths set on the Input object.
This commit is contained in:
parent
c266cef6b1
commit
f738ab8fe2
@ -38,7 +38,7 @@ bool ImageLayer_readLocalData(osg::Object& obj, osgDB::Input &fr)
|
||||
osgTerrain::extractSetNameAndFileName(fr[1].getStr(),setname, filename);
|
||||
if (!filename.empty())
|
||||
{
|
||||
osg::ref_ptr<osg::Image> image = osgDB::readImageFile(filename);
|
||||
osg::ref_ptr<osg::Image> image = fr.readImage(filename.c_str());
|
||||
if (image.valid())
|
||||
{
|
||||
layer.setName(setname);
|
||||
|
Loading…
Reference in New Issue
Block a user