BvhImporterContext did not create BoxMan and HumanPoseTransfer

This commit is contained in:
ousttrue
2023-03-13 15:33:23 +09:00
parent 10aead0b01
commit 1bdf003ee1

View File

@@ -225,8 +225,7 @@ namespace VRM.SimpleViewer
var context = new UniHumanoid.BvhImporterContext();
context.Parse(path, source);
context.Load();
m_src = context.Root.GetComponent<HumanPoseTransfer>();
m_src.GetComponent<Renderer>().enabled = false;
m_src = context.Root.GetOrAddComponent<HumanPoseTransfer>();
m_loaded?.EnableBvh(m_src);
}