From 67b6507f650de709b4ff197df5647a9bba5c8956 Mon Sep 17 00:00:00 2001 From: Ertan Turan Date: Wed, 23 Feb 2022 16:01:07 +0300 Subject: [PATCH] Update FbxObjectsManager.cs due to unintentional culture options coercion fbx export was freezing. --- .../Scripts/FbxExporter/FbxObjectsManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Unity Runtime Recorder/Scripts/FbxExporter/FbxObjectsManager.cs b/Unity Runtime Recorder/Scripts/FbxExporter/FbxObjectsManager.cs index cd64fe6..0ee5662 100644 --- a/Unity Runtime Recorder/Scripts/FbxExporter/FbxObjectsManager.cs +++ b/Unity Runtime Recorder/Scripts/FbxExporter/FbxObjectsManager.cs @@ -23,12 +23,12 @@ public void EditTargetFile (string targetFilePath) string newData = ""; // find start of the Objects - int startIndex = sourceData.IndexOf ("Objects: {\n"); + int startIndex = sourceData.IndexOf ("Objects: {", StringComparison.Ordinal); // copy data into new newData = sourceData.Substring (0, startIndex); - startIndex += ("Objects: {\n").Length; + startIndex += ("Objects: {").Length; StringReader reader = new StringReader (sourceData);