From 4dcd31643064b31be1903312f87b9f805ea05016 Mon Sep 17 00:00:00 2001 From: Jared Duke Date: Sat, 20 Sep 2014 10:23:21 -0700 Subject: [PATCH] Use strict inequality when validating BMesh uvloop access Change the inequality to a strict inequality when validating BMesh uvloop access during face conversion. --- code/BlenderBMesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/BlenderBMesh.cpp b/code/BlenderBMesh.cpp index ed1de0b40..4dbf1d104 100644 --- a/code/BlenderBMesh.cpp +++ b/code/BlenderBMesh.cpp @@ -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( BMesh->mloopuv.size() ) ) + if ( (poly.loopstart + poly.totloop ) > static_cast( BMesh->mloopuv.size() ) ) { ThrowException( "BMesh uv loop array has incorrect size" ); }