Update FBXConverter.cpp

Removing dead and unused code.
pull/2531/head
Kim Kulling 2019-07-03 12:50:01 +02:00 committed by GitHub
parent 08eb6701c3
commit 0ec5eb752c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -1407,15 +1407,12 @@ namespace Assimp {
const std::vector<unsigned int>& indices = shapeGeometry->GetIndices(); const std::vector<unsigned int>& indices = shapeGeometry->GetIndices();
animMesh->mName.Set(FixAnimMeshName(shapeGeometry->Name())); animMesh->mName.Set(FixAnimMeshName(shapeGeometry->Name()));
for (size_t j = 0; j < indices.size(); j++) { for (size_t j = 0; j < indices.size(); j++) {
const unsigned int o_index = indices.at(j);
//unsigned int index = translateIndexMap[indices.at(j)];
unsigned int index = indices.at(j); unsigned int index = indices.at(j);
aiVector3D vertex = vertices.at(j); aiVector3D vertex = vertices.at(j);
aiVector3D normal = normals.at(j); aiVector3D normal = normals.at(j);
unsigned int count = 0; unsigned int count = 0;
const unsigned int* outIndices = mesh.ToOutputVertexIndex(index, count); const unsigned int* outIndices = mesh.ToOutputVertexIndex(index, count);
for (unsigned int k = 0; k < count; k++) { for (unsigned int k = 0; k < count; k++) {
//unsigned int index = outIndices[k];
unsigned int index = translateIndexMap[outIndices[k]]; unsigned int index = translateIndexMap[outIndices[k]];
animMesh->mVertices[index] += vertex; animMesh->mVertices[index] += vertex;