From 3c9dd316fe678a7c22ba710c2a18c3639d8e93d8 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Sun, 20 Sep 2015 21:47:26 +0200 Subject: [PATCH] Fix typo --- code/nel/tools/3d/mesh_utils/assimp_shape.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/nel/tools/3d/mesh_utils/assimp_shape.cpp b/code/nel/tools/3d/mesh_utils/assimp_shape.cpp index a329f30ab..b6b3163bb 100644 --- a/code/nel/tools/3d/mesh_utils/assimp_shape.cpp +++ b/code/nel/tools/3d/mesh_utils/assimp_shape.cpp @@ -192,8 +192,8 @@ bool assimpBuildMesh(CMesh::CMeshBuild &buildMesh, CMeshBase::CMeshBaseBuild &bu face.Corner[1].Vertex = vertexRemapping[mi][af.mIndices[1]]; face.Corner[2].Vertex = vertexRemapping[mi][af.mIndices[2]]; face.Corner[0].Normal = convVector(mesh->mNormals[af.mIndices[0]]); - face.Corner[0].Normal = convVector(mesh->mNormals[af.mIndices[1]]); - face.Corner[0].Normal = convVector(mesh->mNormals[af.mIndices[2]]); + face.Corner[1].Normal = convVector(mesh->mNormals[af.mIndices[1]]); + face.Corner[2].Normal = convVector(mesh->mNormals[af.mIndices[2]]); // TODO: If we want normal maps, we need to add tangent vectors to CFace and build process // TODO: UV if (numColorChannels > 0) // TODO: Verify