Added line to write all bone count of mesh to reflect total number of bones in the rig

This commit is contained in:
Xiao Qi 2023-01-31 17:50:19 +08:00
parent 933e963950
commit 4aa032833c
1 changed files with 5 additions and 0 deletions

View File

@ -68,6 +68,11 @@ namespace SHADE
ReadMeshData(file, asset.meshHeaders, asset.meshes);
ReadAnimData(file, asset.animHeaders, asset.anims);
for (auto& mesh : asset.meshes)
{
mesh->BoneCount = asset.rig.nodeDataCollection.size();
}
// Not eof yet, animation exists
if (file.peek() != EOF)
{