Improvements to support for archives

This commit is contained in:
Robert Osfield
2004-11-12 08:55:11 +00:00
parent f30146a9fe
commit b60304f8ad
5 changed files with 70 additions and 11 deletions

View File

@@ -85,6 +85,13 @@ osg::Object* Input::readObject(const std::string& fileName)
osg::Image* Input::readImage(const std::string& fileName)
{
if (_options.valid() && !_options->getDatabasePath().empty())
{
osg::Image* image = readImageFile(_options->getDatabasePath()+'/'+fileName);
if (image) return image;
}
return readImageFile(fileName);
}