mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-10-02 15:53:30 -05:00
Fix null exception
Fix null exception by Humanoid
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user