Fix null exception

Fix null exception by Humanoid
This commit is contained in:
Fuji Sunflower
2023-10-28 20:12:52 +09:00
parent 897d6c7d07
commit ad11124329

View File

@@ -156,6 +156,11 @@ namespace UniVRM10
public bool TryGetBoneTransform(HumanBodyBones bone, out Transform t)
{
if (Humanoid == null)
{
t = null;
return false;
}
t = Humanoid.GetBoneTransform(bone);
if (t == null)
{