From 5461ca4b6f1ad33a610a0252b93b6a56d5ff6d8c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 25 Jun 2014 16:05:53 +0000 Subject: [PATCH] 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 if(fileExists(simpleFileName)) { OSG_DEBUG << "FindFileInPath(" << filename << "): returning " << filename << std::endl; return simpleFileName; } " git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/branches/OpenSceneGraph-3.2@14284 16af8721-9629-0410-8352-f15c8da7e697 --- src/osgDB/Registry.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index a193f0f07..4492319e7 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -1040,7 +1040,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; }