1
0
mirror of synced 2024-11-14 11:07:39 +01:00

Fix skin count not applying when importing a model

This commit is contained in:
KillzXGaming 2019-04-14 18:18:56 -04:00
parent 96c68b793c
commit fc97eed0ac
3 changed files with 2 additions and 1 deletions

Binary file not shown.

View File

@ -621,8 +621,8 @@ namespace Bfres.Structs
shape.CreateBoneList(obj, this);
shape.CreateIndexList(obj, this);
shape.ApplyImportSettings(csvsettings, GetMaterial(shape.MaterialIndex));
shape.VertexSkinCount = obj.GetMaxSkinInfluenceCount();
shape.BoneIndices = shape.GetIndices(Skeleton);
shape.VertexSkinCount = obj.GetMaxSkinInfluenceCount();
shape.SaveShape(IsWiiU);
shape.SaveVertexBuffer();
@ -881,6 +881,7 @@ namespace Bfres.Structs
shape.CreateIndexList(obj, this);
shape.ApplyImportSettings(settings, GetMaterial(shape.MaterialIndex));
shape.BoneIndices = shape.GetIndices(Skeleton);
shape.VertexSkinCount = obj.GetMaxSkinInfluenceCount();
shape.SaveShape(IsWiiU);
shape.SaveVertexBuffer();