From 952095877dc10aeb988ee93570bcddb13e8e8deb Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Mon, 15 Jun 2020 20:15:27 -0400 Subject: [PATCH] BFRES : Prevent adding attributes if original attributes are kept and present. --- .../FileFormats/BFRES/Bfres Structs/SubFiles/FMDL/FSHP.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL/FSHP.cs b/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL/FSHP.cs index 671a5e9b..71fc2db4 100644 --- a/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL/FSHP.cs +++ b/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL/FSHP.cs @@ -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;