Fixed problem caused by ReaderWriterPFB::writeNode(..) not ensuring that the

file extension was .pfb. Have added a check.
This commit is contained in:
Robert Osfield 2001-10-16 08:24:26 +00:00
parent 747019d0b9
commit c0b0ab5d62

View File

@ -86,6 +86,10 @@ class ReaderWriterPFB : public osgDB::ReaderWriter
virtual bool writeNode(const osg::Node& node,const std::string& fileName, const osgDB::ReaderWriter::Options*)
{
std::string ext = osgDB::getLowerCaseFileExtension(fileName);
if (!acceptsExtension(ext)) return false;
osg::notify(osg::INFO)<< "ReaderWriterPFB::writeNode( "<<fileName.c_str()<<" )\n";
initPerformer();
ConvertToPerformer converter;