mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-07-20 09:11:56 -05:00
commit
fd022838ad
|
|
@ -64,8 +64,11 @@ namespace UniVRM10
|
|||
m_so = value != null ? new SerializedObject(value) : null;
|
||||
m_constraints = null;
|
||||
|
||||
var animator = Root.GetComponent<Animator>();
|
||||
m_head = animator.GetBoneTransform(HumanBodyBones.Head);
|
||||
if (Root != null)
|
||||
{
|
||||
var animator = Root.GetComponent<Animator>();
|
||||
m_head = animator.GetBoneTransform(HumanBodyBones.Head);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user