From 4158a64cb0983286c10a2f76ccfb4a6e8fb0e928 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 18 Sep 2019 15:56:51 +0100 Subject: [PATCH] Updated to map to modern versions of the OSG --- src/vpb/DatabaseBuilderIO.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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() );