From 6ff01c78b6243c2a269e8638781838e4dd51d2c1 Mon Sep 17 00:00:00 2001 From: penggrin12 Date: Sun, 10 May 2026 20:54:32 +0300 Subject: [PATCH] properly add BoneCount & boneCount to Mesh --- include/Mesh.hpp | 2 ++ include/MeshUnmanaged.hpp | 2 ++ 2 files changed, 4 insertions(+) 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; }