The writeImage/Object/Node methods in the .osg and .pfb reader/writer didn't
have the new ReaderWriter::Options* structure passed to them, which meant the the virtual functions didn't bind with the new base class methods and wern't called on a write.
This commit is contained in:
@@ -70,7 +70,7 @@ class OSGReaderWriter : public ReaderWriter
|
||||
}
|
||||
}
|
||||
|
||||
virtual bool writeObject(const Object& obj,const std::string& fileName)
|
||||
virtual bool writeObject(const Object& obj,const std::string& fileName, const osgDB::ReaderWriter::Options*)
|
||||
{
|
||||
Output fout;
|
||||
fout.open(fileName.c_str());
|
||||
@@ -83,7 +83,7 @@ class OSGReaderWriter : public ReaderWriter
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual bool writeNode(const Node& node,const std::string& fileName)
|
||||
virtual bool writeNode(const Node& node,const std::string& fileName, const osgDB::ReaderWriter::Options*)
|
||||
{
|
||||
Output fout;
|
||||
fout.open(fileName.c_str());
|
||||
|
||||
@@ -31,7 +31,7 @@ class ReaderWriterPFB : public osgDB::ReaderWriter
|
||||
virtual const char* className() { return "Performer Reader/Writer"; }
|
||||
virtual bool acceptsExtension(const std::string& extension) { return extension=="pfb"; }
|
||||
|
||||
virtual osg::Image* readImage(const std::string& fileName)
|
||||
virtual osg::Image* readImage(const std::string& fileName, const osgDB::ReaderWriter::Options*)
|
||||
{
|
||||
osg::notify(osg::INFO)<< "ReaderWriterPFB::readImage( "<<fileName.c_str()<<" )\n";
|
||||
|
||||
@@ -84,7 +84,7 @@ class ReaderWriterPFB : public osgDB::ReaderWriter
|
||||
|
||||
}
|
||||
|
||||
virtual bool writeNode(const osg::Node& node,const std::string& fileName)
|
||||
virtual bool writeNode(const osg::Node& node,const std::string& fileName, const osgDB::ReaderWriter::Options*)
|
||||
{
|
||||
osg::notify(osg::INFO)<< "ReaderWriterPFB::writeNode( "<<fileName.c_str()<<" )\n";
|
||||
initPerformer();
|
||||
|
||||
Reference in New Issue
Block a user