From 9918b811a8fe78157bcea31e3488f7539c6b89f4 Mon Sep 17 00:00:00 2001 From: KillzXGaming Date: Tue, 11 Feb 2020 17:55:57 -0500 Subject: [PATCH] Fix SMD exporting for different culture decimal seperators --- Switch_Toolbox_Library/FileFormats/Animation/SMD.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Switch_Toolbox_Library/FileFormats/Animation/SMD.cs b/Switch_Toolbox_Library/FileFormats/Animation/SMD.cs index c094486e..d6292755 100644 --- a/Switch_Toolbox_Library/FileFormats/Animation/SMD.cs +++ b/Switch_Toolbox_Library/FileFormats/Animation/SMD.cs @@ -94,6 +94,9 @@ namespace Toolbox.Library.Animations public void Save(string FileName) { + System.Globalization.CultureInfo customCulture = (System.Globalization.CultureInfo)System.Threading.Thread.CurrentThread.CurrentCulture.Clone(); + customCulture.NumberFormat.NumberDecimalSeparator = "."; + StringBuilder o = new StringBuilder(); o.AppendLine("version 1");