mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-10 12:59:17 -05:00
maintain compatibility
This commit is contained in:
@@ -52,11 +52,7 @@ namespace UniVRM10
|
||||
? new RuntimeOnlyAwaitCaller()
|
||||
: new ImmediateCaller();
|
||||
|
||||
using var gltfData = await awaitCaller.Run(() =>
|
||||
{
|
||||
var bytes = File.ReadAllBytes(path);
|
||||
return new GlbLowLevelParser(path, bytes).Parse();
|
||||
});
|
||||
using var gltfData = new GlbLowLevelParser(path, await File.ReadAllBytesAsync(path, ct)).Parse();
|
||||
return await LoadAsync(
|
||||
gltfData,
|
||||
canLoadVrm0X,
|
||||
@@ -100,7 +96,7 @@ namespace UniVRM10
|
||||
? new RuntimeOnlyAwaitCaller()
|
||||
: new ImmediateCaller();
|
||||
|
||||
using var gltfData = await awaitCaller.Run(() => new GlbLowLevelParser(string.Empty, bytes).Parse());
|
||||
using var gltfData = new GlbLowLevelParser(string.Empty, bytes).Parse();
|
||||
return await LoadAsync(
|
||||
gltfData,
|
||||
canLoadVrm0X,
|
||||
|
||||
Reference in New Issue
Block a user