1
0
mirror of synced 2024-12-01 18:47:26 +01:00

Set the bone index for single binded meshes to what they're binded to

This commit is contained in:
KillzXGaming 2019-04-25 16:52:12 -04:00
parent cbf2f7da90
commit 705837ab0c
5 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@ -937,6 +937,12 @@ namespace Bfres.Structs
shape.VertexSkinCount = obj.GetMaxSkinInfluenceCount();
if (shape.VertexSkinCount == 1)
{
int boneIndex = shape.BoneIndices[0];
shape.BoneIndex = boneIndex;
}
Console.WriteLine($"VertexSkinCount 1 {shape.VertexSkinCount}");