Improved the feedback for when a plugin isn't available.

remotes/origin/OpenSceneGraph-2.6
Robert Osfield 16 years ago
parent 7dabdf5d7e
commit 53aad98d09

@ -79,13 +79,12 @@ static std::string padwithspaces(const std::string& str, unsigned int padLength)
bool osgDB::outputPluginDetails(std::ostream& out, const std::string& fileName)
{
out<<"Plugin "<<fileName<<std::endl;
out<<"{"<<std::endl;
osgDB::ReaderWriterInfoList infoList;
if (osgDB::queryPlugin(fileName, infoList))
{
out<<"Plugin "<<fileName<<std::endl;
out<<"{"<<std::endl;
for(osgDB::ReaderWriterInfoList::iterator rwi_itr = infoList.begin();
rwi_itr != infoList.end();
++rwi_itr)
@ -141,7 +140,11 @@ bool osgDB::outputPluginDetails(std::ostream& out, const std::string& fileName)
}
out<<" }"<<std::endl;
}
out<<"}"<<std::endl<<std::endl;
}
else
{
out<<"Plugin "<<fileName<<" not found."<<std::endl;
}
out<<"}"<<std::endl<<std::endl;
}

Loading…
Cancel
Save