Merge pull request #21 from akihikodaki/master

Fix VRMImporter.LoadVRMAsync methods for newer runtimes
This commit is contained in:
ousttrue
2018-08-07 15:13:56 +09:00
committed by GitHub

View File

@@ -468,8 +468,8 @@ namespace VRM
public static Task<GameObject> 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<GameObject> LoadVrmAsync(Byte[] bytes, bool show=true)
{
var context = new VRMImporterContext();
context.ParseVrm(bytes);
context.ParseGlb(bytes);
return LoadVrmAsync(context, show);
}