[AASBufferFix] Fix error when animator is null

This commit is contained in:
NotAKidoS 2023-06-06 10:52:39 -05:00
parent 6e262bac1b
commit d04f505d88
5 changed files with 16 additions and 9 deletions

View file

@ -27,6 +27,13 @@ public class AASBufferHelper : MonoBehaviour
public void OnAvatarInstantiated(Animator animator)
{
// have never run into an avatar without an animator until today
if (animator == null)
{
GameHandlesAAS = true;
return;
}
//check if avatar uses Avatar Advanced Settings
///SendDebug("[OnInit] Remote avatar initialized. Checking for AAS...");
CVRAvatar avatar = animator.GetComponent<CVRAvatar>();