Skip to content

Commit

Permalink
Merge pull request #2015 from ousttrue/version/update_samples
Browse files Browse the repository at this point in the history
copy Samples to Samples~
  • Loading branch information
ousttrue authored Mar 13, 2023
2 parents 2ba557c + 9356a6f commit 7affa42
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Assets/VRM/Samples~/SimpleViewer/ViewerUI.cs
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,10 @@ private void LoadMotion(string path, string source)
context.Parse(path, source);
context.Load();
m_src = context.Root.GetComponent<HumanPoseTransfer>();
m_src.GetComponent<Renderer>().enabled = false;
if (m_src == null)
{
throw new ArgumentNullException();
}
m_loaded?.EnableBvh(m_src);
}

Expand Down

0 comments on commit 7affa42

Please sign in to comment.