revert small change

pull/3003/head
iamAdrianIusca 2020-02-13 00:21:04 +02:00
parent 6f53e8b43b
commit 24cdb1f221
1 changed files with 1 additions and 1 deletions

View File

@ -843,7 +843,7 @@ bool ObjFileParser::needsNewMesh( const std::string &materialName )
}
bool newMat = false;
int matIdx = getMaterialIndex( materialName );
unsigned int curMatIdx = m_pModel->m_pCurrentMesh->m_uiMaterialIndex;
int curMatIdx = m_pModel->m_pCurrentMesh->m_uiMaterialIndex;
if ( curMatIdx != int(ObjFile::Mesh::NoMaterial)
&& curMatIdx != matIdx
// no need create a new mesh if no faces in current