Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Fix: Culture invariant float to string conversion in AugmentedImageDatabase #599

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Conversion from float to string is now culture invariant (decimal se…
…parator is dot)
  • Loading branch information
kaatrasa committed Jul 2, 2019
commit c00dabdf135416864a4b788220e0c1c603ce4bce
3 changes: 2 additions & 1 deletion Assets/GoogleARCore/SDK/Scripts/AugmentedImageDatabase.cs
Expand Up @@ -29,6 +29,7 @@ namespace GoogleARCore

#if UNITY_EDITOR
using System.IO;
using System.Globalization;
using UnityEditor;
#endif

Expand Down Expand Up @@ -256,7 +257,7 @@ public void BuildIfNeeded(out string error)
sb.Append(m_Images[i].Name).Append('|').Append(imagePath);
if (m_Images[i].Width > 0)
{
sb.Append('|').Append(m_Images[i].Width);
sb.Append('|').Append(m_Images[i].Width.ToString(CultureInfo.InvariantCulture));
}

fileLines[i] = sb.ToString();
Expand Down