Skip to content

Commit

Permalink
Use strict inequality when validating BMesh uvloop access
Browse files Browse the repository at this point in the history
Change the inequality to a strict inequality when validating
BMesh uvloop access during face conversion.
  • Loading branch information
jdduke committed Sep 20, 2014
1 parent 6a8f69a commit 4dcd316
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/BlenderBMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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" );
}
Expand Down

0 comments on commit 4dcd316

Please sign in to comment.