Fix skin count not applying when importing a model
This commit is contained in:
parent
96c68b793c
commit
fc97eed0ac
Binary file not shown.
@ -621,8 +621,8 @@ namespace Bfres.Structs
|
|||||||
shape.CreateBoneList(obj, this);
|
shape.CreateBoneList(obj, this);
|
||||||
shape.CreateIndexList(obj, this);
|
shape.CreateIndexList(obj, this);
|
||||||
shape.ApplyImportSettings(csvsettings, GetMaterial(shape.MaterialIndex));
|
shape.ApplyImportSettings(csvsettings, GetMaterial(shape.MaterialIndex));
|
||||||
shape.VertexSkinCount = obj.GetMaxSkinInfluenceCount();
|
|
||||||
shape.BoneIndices = shape.GetIndices(Skeleton);
|
shape.BoneIndices = shape.GetIndices(Skeleton);
|
||||||
|
shape.VertexSkinCount = obj.GetMaxSkinInfluenceCount();
|
||||||
shape.SaveShape(IsWiiU);
|
shape.SaveShape(IsWiiU);
|
||||||
shape.SaveVertexBuffer();
|
shape.SaveVertexBuffer();
|
||||||
|
|
||||||
@ -881,6 +881,7 @@ namespace Bfres.Structs
|
|||||||
shape.CreateIndexList(obj, this);
|
shape.CreateIndexList(obj, this);
|
||||||
shape.ApplyImportSettings(settings, GetMaterial(shape.MaterialIndex));
|
shape.ApplyImportSettings(settings, GetMaterial(shape.MaterialIndex));
|
||||||
shape.BoneIndices = shape.GetIndices(Skeleton);
|
shape.BoneIndices = shape.GetIndices(Skeleton);
|
||||||
|
shape.VertexSkinCount = obj.GetMaxSkinInfluenceCount();
|
||||||
|
|
||||||
shape.SaveShape(IsWiiU);
|
shape.SaveShape(IsWiiU);
|
||||||
shape.SaveVertexBuffer();
|
shape.SaveVertexBuffer();
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user