Commit cadb2c1a authored by Mike Kremer's avatar Mike Kremer
Browse files

Meshes only consistent of points (with particularly no faces specified) can now be loaded.

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8470 383ad7c9-94d9-4d36-a494-682f7c89f535
parent e8acf153
......@@ -398,7 +398,8 @@ bool FileOFFPlugin::readFileOptions(QString _filename, OFFImporter& _importer) {
if(vertexCount == 3) {
_importer.addOption(OFFImporter::TRIMESH);
_importer.removeOption(OFFImporter::POLYMESH);
} else if (vertexCount == 0) {
} else if (vertexCount == 0 && nF != 0) {
// Something went wrong
return false;
} else {
_importer.addOption(OFFImporter::POLYMESH);
......
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