Use strict inequality when validating BMesh uvloop access

Change the inequality to a strict inequality when validating
BMesh uvloop access during face conversion.
pull/391/head
Jared Duke 2014-09-20 10:23:21 -07:00
parent 6a8f69ad5d
commit 4dcd316430
1 changed files with 1 additions and 1 deletions

View File

@ -150,7 +150,7 @@ void BlenderBMeshConverter::ConvertPolyToFaces( const MPoly& poly )
// UVs are optional, so only convert when present.
if ( BMesh->mloopuv.size() )
{
if ( (poly.loopstart + poly.totloop ) >= static_cast<int>( BMesh->mloopuv.size() ) )
if ( (poly.loopstart + poly.totloop ) > static_cast<int>( BMesh->mloopuv.size() ) )
{
ThrowException( "BMesh uv loop array has incorrect size" );
}