Removed dead code

This commit is contained in:
Antoine Pilote
2023-08-13 11:50:51 -04:00
parent a998e171d5
commit 0307166ce4

View File

@@ -171,24 +171,6 @@ namespace Nuake
auto indices = ProcessIndices(node);
auto material = ProcessMaterials(scene, node);
if (node->HasBones())
{
for (uint32_t i = 0; i < node->mNumBones; i++)
{
aiBone* bone = node->mBones[i];
const std::string& boneName = bone->mName.C_Str();
const auto& boneMatrix = bone->mOffsetMatrix;
for (uint32_t j = 0; j < bone->mNumWeights; j++)
{
aiVertexWeight vertexWeight = bone->mWeights[j];
const float weigth = vertexWeight.mWeight;
uint32_t vertexId = vertexWeight.mVertexId;
}
}
}
Ref<Mesh> mesh = CreateRef<Mesh>();
mesh->AddSurface(vertices, indices);
mesh->SetMaterial(material);
@@ -303,8 +285,6 @@ namespace Nuake
vertex.uv = Vector2(u, v);
}
// We are filling the bones later.
vertices.push_back(vertex);
}