Commit 61bb646c authored by Isaak Lim's avatar Isaak Lim

moved an end-of-file check in readFileOptions so that eof is detected in time

closes #508

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@14367 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 2a16675e
......@@ -366,9 +366,13 @@ bool FileOFFPlugin::readFileOptions(QString _filename, OFFImporter& _importer) {
for(int i = 0; i < 2; ++i) readValue(ifs, dummy_f);
}
}
for (uint i=0; i<nF && !ifs.eof(); ++i) {
for (uint i=0; i<nF; ++i) {
// Get valence of current face
readValue(ifs, tmp_count);
if (ifs.eof())
break;
if(tmp_count > vertexCount) vertexCount = tmp_count;
// Skip the rest
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment