Explorar o código

Merge pull request #391 from jdduke/fix_blend_bmesh_uvloop

Use strict inequality when validating BMesh uvloop access
Alexander Gessler %!s(int64=11) %!d(string=hai) anos
pai
achega
f44968669f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/BlenderBMesh.cpp

+ 1 - 1
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<int>( BMesh->mloopuv.size() ) )
+			if ( (poly.loopstart + poly.totloop ) > static_cast<int>( BMesh->mloopuv.size() ) )
 			{
 				ThrowException( "BMesh uv loop array has incorrect size" );
 			}