Merge pull request #1985 from ousttrue/fix_vrm10viewer_bvh_load

sampler の bvh load の修正
This commit is contained in:
ousttrue
2023-02-20 12:54:20 +09:00
committed by GitHub

View File

@@ -220,7 +220,7 @@ namespace UniVRM10.VRM10Viewer
private void LoadMotion(string source)
{
var context = new UniHumanoid.BvhImporterContext();
context.Parse("tmp.bvh", source);
context.Parse("tmp.bvh", File.ReadAllText(source));
context.Load();
m_src = context.Root.GetComponent<Animator>();
m_ui.IsBvhEnabled = true;