1
0
mirror of synced 2024-09-24 11:38:22 +02:00

BFRES : Prevent adding attributes if original attributes are kept and present.

This commit is contained in:
KillzXGaming 2020-06-15 20:15:27 -04:00
parent aaa98afa8e
commit 952095877d

View File

@ -1020,7 +1020,7 @@ namespace Bfres.Structs
}
public void CreateBoneList(STGenericObject ob, FMDL mdl, bool ForceSkinCount, int ForcedSkinAmount = 4)
{
if (ForceSkinCount && !ob.HasIndices && VertexSkinCount != 0)
if (ForceSkinCount && !ob.HasIndices && VertexSkinCount != 0 && !vertexAttributes.Any(x => x.Name == "_i0"))
{
var attributeIndex = new FSHP.VertexAttribute();
attributeIndex.Format = ResGFX.AttribFormat.Format_8_8_8_8_UInt;