diff --git a/Assets/VRM/Editor/Format/VRMEditorExporter.cs b/Assets/VRM/Editor/Format/VRMEditorExporter.cs index 8a047864c..74bc3a710 100644 --- a/Assets/VRM/Editor/Format/VRMEditorExporter.cs +++ b/Assets/VRM/Editor/Format/VRMEditorExporter.cs @@ -28,7 +28,8 @@ namespace VRM { foreach (var x in destroy) { - Debug.LogFormat("destroy: {0}", x.name); + // x.name がエラーを引き起こす場合がある + // Debug.LogFormat("destroy: {0}", x.name); GameObject.DestroyImmediate(x); } } diff --git a/Assets/VRM/Tests/VRMLookAtTests.cs b/Assets/VRM/Tests/VRMLookAtTests.cs index 4318da2c3..a9a07b4a3 100644 --- a/Assets/VRM/Tests/VRMLookAtTests.cs +++ b/Assets/VRM/Tests/VRMLookAtTests.cs @@ -1,4 +1,5 @@ +using System; using System.IO; using NUnit.Framework; using UniGLTF; @@ -34,8 +35,8 @@ namespace VRM var lookAt = go.AddComponent(); var settings = (VRMExportSettings)ScriptableObject.CreateInstance(); settings.PoseFreeze = true; - bytes = VRMEditorExporter.Export(go, null, settings); - } + bytes = VRMEditorExporter.Export(go, null, settings); + } using (var data2 = new GlbLowLevelParser(AliciaPath, bytes).Parse()) using (var loader2 = new VRMImporterContext(new VRMData(data2))) @@ -60,10 +61,9 @@ namespace VRM var fp = go.GetComponent(); var lookAt = go.GetComponent(); horizontalInner = lookAt.HorizontalInner; - bytes = VRMEditorExporter.Export(go, null, new VRMExportSettings - { - PoseFreeze = true, - }); + var settings = ScriptableObject.CreateInstance(); + settings.PoseFreeze = true; + bytes = VRMEditorExporter.Export(go, null, settings); } using (var data2 = new GlbLowLevelParser(AliciaPath, bytes).Parse())