Fixed problem caused by ReaderWriterPFB::writeNode(..) not ensuring that the
file extension was .pfb. Have added a check.
This commit is contained in:
parent
747019d0b9
commit
c0b0ab5d62
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user