From Stephan Huber, "attached you'll find a small bugfix for the 3ds-reader. It allows

reading files with relative paths again. (Hard to explain, easy to see
in the diff)"
This commit is contained in:
Robert Osfield
2010-03-10 10:10:57 +00:00
parent bafe1d0b94
commit 6dc1ec6c4e

View File

@@ -652,7 +652,7 @@ osgDB::ReaderWriter::ReadResult ReaderWriter3DS::readNode(const std::string& fil
// Do not use the lib3ds_file_open() as:
// 1. It relies on FILE* instead of iostreams (less safe)
// 2. It doesn't allow us to set a custom log output
std::ifstream fin(file.c_str(), std::ios_base::in | std::ios_base::binary);
std::ifstream fin(fileName.c_str(), std::ios_base::in | std::ios_base::binary);
if (!fin.good()) return ReadResult::ERROR_IN_READING_FILE;
return doReadNode(fin, options, fileName);
/*