diff --git a/src/vpb/DatabaseBuilderIO.cpp b/src/vpb/DatabaseBuilderIO.cpp index 8961fab..644a326 100644 --- a/src/vpb/DatabaseBuilderIO.cpp +++ b/src/vpb/DatabaseBuilderIO.cpp @@ -121,7 +121,7 @@ class VPBReaderWriter : public osgDB::ReaderWriter virtual ReadResult readNode(const std::string& file, const Options* opt) const { - OSG_INFO<<"VPBReaderWriter::readNode()"<getReaderWriterForExtension("osg2"); + osgDB::ReaderWriter* rw = osgDB::Registry::instance()->getReaderWriterForExtension("osg"); if (!rw) return ReadResult::FILE_NOT_HANDLED; OSG_INFO<<" found ReaderWriter, readNode_new()"<getReaderWriterForExtension("osg2"); + osgDB::ReaderWriter* rw = osgDB::Registry::instance()->getReaderWriterForExtension("osg"); if (!rw) return WriteResult::FILE_NOT_HANDLED; result = rw->writeNode( node, fout, local_opt.get() );