Update ReaderWriterDAE.cpp

This commit is contained in:
flashk 2018-10-12 13:27:12 -07:00 committed by GitHub
parent 11dfe44fb5
commit 3a40d93414
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -143,6 +143,9 @@ ReaderWriterDAE::readNode(const std::string& fname,
std::string fileName( osgDB::findDataFile( fname, options ) );
if( fileName.empty() ) return ReadResult::FILE_NOT_FOUND;
pluginOptions.options = options ? static_cast<Options*>(options->clone(osg::CopyOp::SHALLOW_COPY)) : new Options;
pluginOptions.options->getDatabasePathList().push_front(osgDB::getFilePath(fileName));
OSG_INFO << "ReaderWriterDAE( \"" << fileName << "\" )" << std::endl;