Add empty mesh when reading empty stl file.

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@399 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Mike Kremer
2011-07-13 15:10:37 +00:00
parent 7528d961e3
commit 7f654f68fe

View File

@@ -246,12 +246,9 @@ read_stla(const std::string& _filename, BaseImporter& _bi) const
} }
} }
fclose(in); fclose(in);
return true;
// In general a file has data, there the number of vertices cannot be 0.
return _bi.n_vertices() != 0;
} }