unit test: missing mNumIndices

pull/1910/head
Sergio Acereda 2018-04-23 12:23:12 +02:00
parent ce6a5e5d56
commit 43dedb6e09
1 changed files with 3 additions and 0 deletions

View File

@ -101,8 +101,11 @@ TEST_F(VTAdjacencyTest, smallDataSet)
mesh.mFaces = new aiFace[3];
mesh.mFaces[0].mIndices = new unsigned int[3];
mesh.mFaces[0].mNumIndices = 3;
mesh.mFaces[1].mIndices = new unsigned int[3];
mesh.mFaces[1].mNumIndices = 3;
mesh.mFaces[2].mIndices = new unsigned int[3];
mesh.mFaces[2].mNumIndices = 3;
mesh.mFaces[0].mIndices[0] = 1;
mesh.mFaces[0].mIndices[1] = 3;