Changed the file search path so it returns an empty string when the filename contains a server address.
This commit is contained in:
parent
0fe8084499
commit
9dfcb2530b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user