mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-03 06:49:22 +00:00
[AASBufferFix] Fix error when animator is null
This commit is contained in:
parent
6e262bac1b
commit
d04f505d88
5 changed files with 16 additions and 9 deletions
|
@ -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>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue