diff --git a/include/Mesh.hpp b/include/Mesh.hpp index 29182350..e9bce42d 100644 --- a/include/Mesh.hpp +++ b/include/Mesh.hpp @@ -50,6 +50,7 @@ class Mesh : public MeshUnmanaged { other.animNormals = nullptr; other.boneIndices = nullptr; other.boneWeights = nullptr; + other.boneCount = 0; other.vaoId = 0; other.vboId = nullptr; } @@ -75,6 +76,7 @@ class Mesh : public MeshUnmanaged { other.animNormals = nullptr; other.boneIndices = nullptr; other.boneWeights = nullptr; + other.boneCount = 0; other.vaoId = 0; other.vboId = nullptr; diff --git a/include/MeshUnmanaged.hpp b/include/MeshUnmanaged.hpp index 4fce20e2..452ccf33 100644 --- a/include/MeshUnmanaged.hpp +++ b/include/MeshUnmanaged.hpp @@ -131,6 +131,7 @@ class MeshUnmanaged : public ::Mesh { GETTERSETTER(float*, AnimNormals, animNormals) GETTERSETTER(unsigned char*, BoneIndices, boneIndices) GETTERSETTER(float*, BoneWeights, boneWeights) + GETTERSETTER(int, BoneCount, boneCount) GETTERSETTER(unsigned int, VaoId, vaoId) GETTERSETTER(unsigned int*, VboId, vboId) @@ -243,6 +244,7 @@ class MeshUnmanaged : public ::Mesh { animNormals = mesh.animNormals; boneIndices = mesh.boneIndices; boneWeights = mesh.boneWeights; + boneCount = mesh.boneCount; vaoId = mesh.vaoId; vboId = mesh.vboId; }