Quick bone index fix.
This commit is contained in:
parent
0b27e890be
commit
93aa26efcf
@ -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>();
|
||||
|
Loading…
x
Reference in New Issue
Block a user