From Riccardo Corsi, "there's an inconsistency between the behavior of the method and the

debug message it prints out on the console.

Around line 1040 of Registry.cpp (see code below) the method returns
"simpleFileName" but prints about returning "filename".

In attachment the modified file, based on osg 3.2.0
ricky


<code>
if(fileExists(simpleFileName))
{
    OSG_DEBUG << "FindFileInPath(" << filename << "): returning " <<
filename << std::endl;
    return simpleFileName;
}
</code>
"


git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14285 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2014-06-25 16:05:56 +00:00
parent aac0a5fbe2
commit 86ddbc7ad9

View File

@ -1041,7 +1041,7 @@ std::string Registry::findDataFileImplementation(const std::string& filename, co
if(fileExists(simpleFileName))
{
OSG_DEBUG << "FindFileInPath(" << filename << "): returning " << filename << std::endl;
OSG_DEBUG << "FindFileInPath(" << filename << "): returning " << simpleFileName << std::endl;
return simpleFileName;
}