mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-13 22:39:39 -05:00
Test use latest interface.
This commit is contained in:
@@ -198,13 +198,13 @@ namespace UniVRM10
|
||||
|
||||
foreach (var gltf in EnumerateGltfFiles(root))
|
||||
{
|
||||
var bytes = File.ReadAllBytes(gltf.FullName);
|
||||
try
|
||||
{
|
||||
var migrated = MigrationVrm.Migrate(bytes);
|
||||
var data = new GlbLowLevelParser(gltf.FullName, migrated).Parse();
|
||||
UniGLTF.Extensions.VRMC_vrm.GltfDeserializer.TryGet(data.GLTF.extensions, out UniGLTF.Extensions.VRMC_vrm.VRMC_vrm vrm);
|
||||
Assert.NotNull(vrm);
|
||||
Vrm10Data.TryParseOrMigrate(gltf.FullName, true, out Vrm10Data vrm);
|
||||
using (var loader = new Vrm10Importer(vrm))
|
||||
{
|
||||
loader.LoadAsync().Wait();
|
||||
}
|
||||
}
|
||||
catch (UnNormalizedException)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user