mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-24 19:45:37 -05:00
fix test
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
|
||||
using System;
|
||||
using System.IO;
|
||||
using NUnit.Framework;
|
||||
using UniGLTF;
|
||||
@@ -34,8 +35,8 @@ namespace VRM
|
||||
var lookAt = go.AddComponent<VRMLookAtBlendShapeApplyer>();
|
||||
var settings = (VRMExportSettings)ScriptableObject.CreateInstance<VRMExportSettings>();
|
||||
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<VRMFirstPerson>();
|
||||
var lookAt = go.GetComponent<VRMLookAtBoneApplyer>();
|
||||
horizontalInner = lookAt.HorizontalInner;
|
||||
bytes = VRMEditorExporter.Export(go, null, new VRMExportSettings
|
||||
{
|
||||
PoseFreeze = true,
|
||||
});
|
||||
var settings = ScriptableObject.CreateInstance<VRMExportSettings>();
|
||||
settings.PoseFreeze = true;
|
||||
bytes = VRMEditorExporter.Export(go, null, settings);
|
||||
}
|
||||
|
||||
using (var data2 = new GlbLowLevelParser(AliciaPath, bytes).Parse())
|
||||
|
||||
Reference in New Issue
Block a user