1
0
mirror of synced 2025-01-19 01:14:08 +01:00

Quick bone index fix.

This commit is contained in:
KillzXGaming 2020-02-07 09:40:43 -05:00
parent 0b27e890be
commit 93aa26efcf

View File

@ -1195,10 +1195,6 @@ namespace Bfres.Structs
shape.ApplyImportSettings(settings, GetMaterial(shape.MaterialIndex));
shape.BoneIndices = shape.GetIndices(Skeleton);
shape.OptmizeAttributeFormats();
shape.SaveShape(IsWiiU);
shape.SaveVertexBuffer(IsWiiU);
if (shape.VertexSkinCount == 1 && shape.BoneIndices.Count > 0)
{
int boneIndex = shape.BoneIndices[0];
@ -1207,6 +1203,10 @@ namespace Bfres.Structs
shape.BoneIndex = obj.BoneIndex;
shape.OptmizeAttributeFormats();
shape.SaveShape(IsWiiU);
shape.SaveVertexBuffer(IsWiiU);
if (IsWiiU)
{
shape.ShapeU.SubMeshBoundingIndices = new List<ushort>();