Added line to write all bone count of mesh to reflect total number of bones in the rig
This commit is contained in:
parent
933e963950
commit
4aa032833c
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue