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

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

closes #508

git-svn-id: 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())
if(tmp_count > vertexCount) vertexCount = tmp_count;
// Skip the rest
Supports Markdown
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