Changed the file search path so it returns an empty string when the filename contains a server address.

This commit is contained in:
Robert Osfield 2009-06-08 10:27:21 +00:00
parent 0fe8084499
commit 9dfcb2530b

View File

@ -1493,6 +1493,9 @@ std::string Registry::findDataFileImplementation(const std::string& filename, co
{
if (filename.empty()) return filename;
// if data file contains a server address then we can't find it in local directories so return empty string.
if (containsServerAddress(filename)) return std::string();
if(fileExists(filename))
{
osg::notify(osg::DEBUG_INFO) << "FindFileInPath(" << filename << "): returning " << filename << std::endl;