From fe52c1cbc60c8ab7f974a9263fce1baf36d69c10 Mon Sep 17 00:00:00 2001 From: MediaMoots <81146974+MediaMoots@users.noreply.github.com> Date: Tue, 5 Sep 2023 08:41:58 +0800 Subject: [PATCH] Fix extra frame added to smd animation export (#659) --- Switch_Toolbox_Library/FileFormats/Animation/SMD.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Switch_Toolbox_Library/FileFormats/Animation/SMD.cs b/Switch_Toolbox_Library/FileFormats/Animation/SMD.cs index c2ed987d..5e461b8a 100644 --- a/Switch_Toolbox_Library/FileFormats/Animation/SMD.cs +++ b/Switch_Toolbox_Library/FileFormats/Animation/SMD.cs @@ -347,7 +347,7 @@ namespace Toolbox.Library.Animations file.WriteLine("skeleton"); anim.SetFrame(0); - for (int i = 0; i <= anim.FrameCount; i++) + for (int i = 0; i < anim.FrameCount; i++) { anim.NextFrame(Skeleton, false, true);