Remove assertion in ObjFileImporter

This assertion is already handled by an exception, and could lead to a
crash when parsing an ill-formed OBJ file.
This commit is contained in:
Alexandre Avenel
2017-12-29 17:56:30 +01:00
parent dc5726bd0f
commit 20ef807982

View File

@@ -474,7 +474,6 @@ void ObjFileImporter::createVertexArray(const ObjFile::Model* pModel,
if ( !pModel->m_TextureCoord.empty() && vertexIndex < pSourceFace->m_texturCoords.size())
{
const unsigned int tex = pSourceFace->m_texturCoords.at( vertexIndex );
ai_assert( tex < pModel->m_TextureCoord.size() );
if ( tex >= pModel->m_TextureCoord.size() )
throw DeadlyImportError("OBJ: texture coordinate index out of range");