applied coding conventions

added check against the known faces
pull/2022/head
CwTCwT 2018-06-16 15:30:22 +02:00
parent 41bf572af6
commit a96587d551
2 changed files with 2 additions and 2 deletions

View File

@ -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)); matTexUvMappings.insert(std::make_pair(m, texuv));
} }
} }

View File

@ -73,6 +73,7 @@ TEST_F(BlenderWorkTest,work_279) {
ASSERT_TRUE(pTest->HasMaterials()); ASSERT_TRUE(pTest->HasMaterials());
ASSERT_TRUE(pTest->HasMeshes()); ASSERT_TRUE(pTest->HasMeshes());
ASSERT_TRUE(pTest->mMeshes[0]->mNumVertices > 0); ASSERT_TRUE(pTest->mMeshes[0]->mNumVertices > 0);
ASSERT_EQ(44, pTest->mMeshes[0]->mNumFaces);
EXPECT_EQ(1, pTest->mNumMaterials); EXPECT_EQ(1, pTest->mNumMaterials);
} }