From 9dfcb2530b2ed3cee3336428ab6a196f20be07be Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 8 Jun 2009 10:27:21 +0000 Subject: [PATCH] Changed the file search path so it returns an empty string when the filename contains a server address. --- src/osgDB/Registry.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index b7beb598c..aa5199968 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -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;