Fix #1970: stl with empty solid

Log warning instead of stopping whole import.
This commit is contained in:
Alexandre Avenel
2018-05-19 23:19:36 +02:00
parent 4b5c49b087
commit 84739fda0a
+1 -1
View File
@@ -352,7 +352,7 @@ void STLImporter::LoadASCIIFile( aiNode *root ) {
if (positionBuffer.empty()) {
pMesh->mNumFaces = 0;
throw DeadlyImportError("STL: ASCII file is empty or invalid; no data loaded");
ASSIMP_LOG_WARN("STL: mesh is empty or invalid; no data loaded");
}
if (positionBuffer.size() % 3 != 0) {
pMesh->mNumFaces = 0;