Skip to content

Commit

Permalink
Merge pull request #9 from Estecka/locale
Browse files Browse the repository at this point in the history
Fix FormatException on non-english computers
  • Loading branch information
FreyaHolmer authored Jan 20, 2020
2 parents 31a58d6 + 3ee3e12 commit a5b7046
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shader Forge/Assets/ShaderForge/Editor/Code/SF_Parser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ public static string ExtractShaderForgeData( Shader s, out float version, bool s
if( verStr.StartsWith( "v" ) )
verStr = verStr.Substring( 1 );

version = float.Parse(verStr);
version = float.Parse(verStr, System.Globalization.CultureInfo.InvariantCulture);
}
if( shaderData[i].StartsWith( "/*SF_DATA;" ) ) {
returnString = shaderData[i].Substring( 10, shaderData[i].Length - 12 ); // Exclude comment markup
Expand Down

0 comments on commit a5b7046

Please sign in to comment.