Changeset 11180

Show
Ignore:
Timestamp:
03/10/10 11:10:57 (4 years ago)
Author:
robert
Message:

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)"

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/src/osgPlugins/3ds/ReaderWriter3DS.cpp

    r11056 r11180  
    653653    //   1. It relies on FILE* instead of iostreams (less safe) 
    654654    //   2. It doesn't allow us to set a custom log output 
    655     std::ifstream fin(file.c_str(), std::ios_base::in | std::ios_base::binary); 
     655    std::ifstream fin(fileName.c_str(), std::ios_base::in | std::ios_base::binary); 
    656656    if (!fin.good()) return ReadResult::ERROR_IN_READING_FILE; 
    657657    return doReadNode(fin, options, fileName);