Return exception when obj file contains invalid face indice
parent
aa733d6f77
commit
cc8374dd80
|
@ -475,7 +475,11 @@ void ObjFileParser::getFace( aiPrimitiveType type ) {
|
||||||
} else {
|
} else {
|
||||||
reportErrorTokenInFace();
|
reportErrorTokenInFace();
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
//On error, std::atoi will return 0 which is not a valid value
|
||||||
|
throw DeadlyImportError("OBJ: Invalid face indice");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
m_DataIt += iStep;
|
m_DataIt += iStep;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue