diff --git a/Scripts/Format/VRMImporter.cs b/Scripts/Format/VRMImporter.cs index 4c87c9170..31e9729c4 100644 --- a/Scripts/Format/VRMImporter.cs +++ b/Scripts/Format/VRMImporter.cs @@ -468,8 +468,8 @@ namespace VRM public static Task LoadVrmAsync(string path, bool show=true) { - var context = new VRMImporterContext(path); - context.ParseVrm(File.ReadAllBytes(path)); + var context = new VRMImporterContext(UnityPath.FromFullpath(path)); + context.ParseGlb(File.ReadAllBytes(path)); return LoadVrmAsyncInternal(context, show).ToTask(); } @@ -477,7 +477,7 @@ namespace VRM public static Task LoadVrmAsync(Byte[] bytes, bool show=true) { var context = new VRMImporterContext(); - context.ParseVrm(bytes); + context.ParseGlb(bytes); return LoadVrmAsync(context, show); }