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:
@@ -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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user