From 0307166ce4dcf1e3a447d77e975e5c72251b6a11 Mon Sep 17 00:00:00 2001 From: Antoine Pilote Date: Sun, 13 Aug 2023 11:50:51 -0400 Subject: [PATCH] Removed dead code --- Nuake/src/Resource/ModelLoader.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/Nuake/src/Resource/ModelLoader.cpp b/Nuake/src/Resource/ModelLoader.cpp index 3f53e986..2a64dd3b 100644 --- a/Nuake/src/Resource/ModelLoader.cpp +++ b/Nuake/src/Resource/ModelLoader.cpp @@ -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 = CreateRef(); 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); }