1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-19 03:05:29 +02:00

Refactor SkinnedMesh (#15522)

This commit is contained in:
Lars Müller
2024-12-12 15:33:08 +01:00
committed by GitHub
parent d123bc0951
commit 1e59b9a756
10 changed files with 387 additions and 896 deletions

View File

@@ -100,7 +100,7 @@ private:
{
public:
MeshExtractor(tiniergltf::GlTF &&model,
SkinnedMesh *mesh) noexcept
SkinnedMeshBuilder *mesh) noexcept
: m_gltf_model(std::move(model)), m_irr_model(mesh) {};
/* Gets indices for the given mesh/primitive.
@@ -124,7 +124,7 @@ private:
private:
const tiniergltf::GlTF m_gltf_model;
SkinnedMesh *m_irr_model;
SkinnedMeshBuilder *m_irr_model;
std::vector<std::function<void()>> m_mesh_loaders;
std::vector<SkinnedMesh::SJoint *> m_loaded_nodes;