From 5a4399f8ce513118a23dfab35561a8c7776c88ca Mon Sep 17 00:00:00 2001 From: rubenthoms Date: Fri, 28 Aug 2020 11:39:51 +0200 Subject: [PATCH] Fixed 6377, false check for invalid indices in triangle indices definition algorithm. --- ApplicationCode/FileInterface/RifSurfaceImporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ApplicationCode/FileInterface/RifSurfaceImporter.cpp b/ApplicationCode/FileInterface/RifSurfaceImporter.cpp index 548b11b20e..de201536e6 100644 --- a/ApplicationCode/FileInterface/RifSurfaceImporter.cpp +++ b/ApplicationCode/FileInterface/RifSurfaceImporter.cpp @@ -323,7 +323,7 @@ std::pair, std::vector> RifSurfaceImporter::re triangleIndices.push_back( q4 ); } - if ( q1 != ( (unsigned)-1 ) && q2 != ( (unsigned)-1 ) && q3 != ( (unsigned)-1 ) ) + if ( q1 != ( (unsigned)-1 ) && q4 != ( (unsigned)-1 ) && q3 != ( (unsigned)-1 ) ) { triangleIndices.push_back( q1 ); triangleIndices.push_back( q4 );