From a96587d551c2e2e2b369118d57ba91b52162ecbc Mon Sep 17 00:00:00 2001 From: CwTCwT Date: Sat, 16 Jun 2018 15:30:22 +0200 Subject: [PATCH] applied coding conventions added check against the known faces --- code/BlenderLoader.cpp | 3 +-- test/unit/utBlenderWork.cpp | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/code/BlenderLoader.cpp b/code/BlenderLoader.cpp index a141eccfd..d24fad180 100644 --- a/code/BlenderLoader.cpp +++ b/code/BlenderLoader.cpp @@ -1045,8 +1045,7 @@ void BlenderImporter::ConvertMesh(const Scene& /*in*/, const Object* /*obj*/, co } } } - if (texuv.size()) - { + if (texuv.size()) { matTexUvMappings.insert(std::make_pair(m, texuv)); } } diff --git a/test/unit/utBlenderWork.cpp b/test/unit/utBlenderWork.cpp index b0212b1d3..a17764673 100644 --- a/test/unit/utBlenderWork.cpp +++ b/test/unit/utBlenderWork.cpp @@ -73,6 +73,7 @@ TEST_F(BlenderWorkTest,work_279) { ASSERT_TRUE(pTest->HasMaterials()); ASSERT_TRUE(pTest->HasMeshes()); ASSERT_TRUE(pTest->mMeshes[0]->mNumVertices > 0); + ASSERT_EQ(44, pTest->mMeshes[0]->mNumFaces); EXPECT_EQ(1, pTest->mNumMaterials); }