Skip to content

Commit

Permalink
Updated to map to modern versions of the OSG
Browse files Browse the repository at this point in the history
  • Loading branch information
robertosfield committed Sep 18, 2019
1 parent 412ac82 commit 4158a64
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vpb/DatabaseBuilderIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class VPBReaderWriter : public osgDB::ReaderWriter

virtual ReadResult readNode(const std::string& file, const Options* opt) const
{
OSG_INFO<<"VPBReaderWriter::readNode()"<<std::endl;
OSG_INFO<<"VPBReaderWriter::readNode() "<<file<<std::endl;

std::string ext = osgDB::getFileExtension(file);
if (!acceptsExtension(ext)) return ReadResult::FILE_NOT_HANDLED;
Expand Down Expand Up @@ -157,7 +157,7 @@ class VPBReaderWriter : public osgDB::ReaderWriter
{
OSG_INFO<<"readNode_new()"<<std::endl;

osgDB::ReaderWriter* rw = osgDB::Registry::instance()->getReaderWriterForExtension("osg2");
osgDB::ReaderWriter* rw = osgDB::Registry::instance()->getReaderWriterForExtension("osg");
if (!rw) return ReadResult::FILE_NOT_HANDLED;

OSG_INFO<<" found ReaderWriter, readNode_new()"<<std::endl;
Expand Down Expand Up @@ -235,7 +235,7 @@ class VPBReaderWriter : public osgDB::ReaderWriter
osgDB::ofstream fout( fileName.c_str(), std::ios::out );
if ( !fout ) return WriteResult::ERROR_IN_WRITING_FILE;

osgDB::ReaderWriter* rw = osgDB::Registry::instance()->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() );
Expand Down

0 comments on commit 4158a64

Please sign in to comment.