Fix #1970: stl with empty solid

Log warning instead of stopping whole import.
pull/1972/head
Alexandre Avenel 2018-05-19 22:05:06 +02:00
parent 4b5c49b087
commit 84739fda0a
1 changed files with 1 additions and 1 deletions

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;