pull/3369/head
Kim Kulling 2020-08-11 20:28:12 +02:00 committed by GitHub
parent b1b9fa94cf
commit 1bbae19779
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -47,10 +47,11 @@ TEST_F( utStandardShapes, testMakeMesh ) {
// Make mesh
const auto numIndicesPerPrimitive = 3;
auto aiMeshPtr = Assimp::StandardShapes::MakeMesh(positions, numIndicesPerPrimitive);
aiMesh *aiMeshPtr = Assimp::StandardShapes::MakeMesh(positions, numIndicesPerPrimitive);
// The mNumIndices member of the second face is now incorrect
const auto& face = aiMeshPtr->mFaces[0];
EXPECT_EQ(face.mNumIndices, numIndicesPerPrimitive);
delete aiMeshPtr;
}