From e1e6a3941f585f2e5d03ba86a894f2d806686ea6 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Mon, 29 Mar 2021 20:41:44 -0400 Subject: [PATCH] BFRES : Quick work around for skinning indices to fix index out of range error. Quick work around based on VelouriasMoon's fix. --- .../FileFormats/BFRES/Bfres Structs/SubFiles/FMDL/FSKL.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL/FSKL.cs b/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL/FSKL.cs index bd7e15c6..6420cdb5 100644 --- a/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL/FSKL.cs +++ b/File_Format_Library/FileFormats/BFRES/Bfres Structs/SubFiles/FMDL/FSKL.cs @@ -49,7 +49,7 @@ namespace Bfres.Structs { if (bn.Text == Bone.Name) { - if (bn.UseSmoothMatrix || bn.SmoothMatrixIndex != -1) + if (bn.UseSmoothMatrix || bn.SmoothMatrixIndex > 0) { bn.SmoothMatrixIndex = (short)SmoothIndex++;