Was curious about the way referenced files are searched for. There's
this block of code at Registry.cpp line 1002. It appears to use the
file path of a parent file to search for referenced files.
if (options && !options->getDatabasePathList().empty())
{
fileFound = findFileInPath(filename,
options->getDatabasePathList(), caseSensitivity);
if (!fileFound.empty()) return fileFound;
if
(osgDB::containsCurrentWorkingDirectoryReference(options->getDatabasePathList()))
{
pathsContainsCurrentWorkingDirectory = true;
}
}
As long as this code block is there, referenced files are not searched
for in the order specified in OSG_FILE_PATH. The code block
immediately following this one searches all of OSG_FILE_PATH, so if
you comment out this code block the order in OSG_FILE_PATH is
respected for all files which is more consistent. Is this
inconsistency intentional or should this code block be removed?
--
Terry Welsh
www.reallyslick.com
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org