From 7c54b5830609b86f8b84dbf80eb65b6e806488e1 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 15 Oct 2001 08:40:30 +0000 Subject: [PATCH] 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. --- src/osgPlugins/osg/ReaderWriterOSG.cpp | 4 ++-- src/osgPlugins/pfb/ReaderWriterPFB.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/osgPlugins/osg/ReaderWriterOSG.cpp b/src/osgPlugins/osg/ReaderWriterOSG.cpp index c4186db23..c64431093 100644 --- a/src/osgPlugins/osg/ReaderWriterOSG.cpp +++ b/src/osgPlugins/osg/ReaderWriterOSG.cpp @@ -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()); diff --git a/src/osgPlugins/pfb/ReaderWriterPFB.cpp b/src/osgPlugins/pfb/ReaderWriterPFB.cpp index 970991b5a..62fae890a 100644 --- a/src/osgPlugins/pfb/ReaderWriterPFB.cpp +++ b/src/osgPlugins/pfb/ReaderWriterPFB.cpp @@ -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( "<