mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-09 20:08:57 +03:00
Removed dead code
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user