Fix Audio Clip References in Animator (#780)

For the new VRC Play Audio State Behavior available in Open Beta
This commit is contained in:
ZenithVal 2024-03-16 02:55:34 -04:00 committed by GitHub
parent aa631f3b01
commit 2c69bb2b76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using nadena.dev.modular_avatar.core.editor;
using nadena.dev.ndmf;
@ -50,7 +50,8 @@ namespace nadena.dev.modular_avatar.animation
case AnimatorTransitionBase _:
case StateMachineBehaviour _:
break; // We want to clone these types
case AudioClip _: //Used in VRC Animator Play Audio State Behavior
// Leave textures, materials, and script definitions alone
case Texture2D _:
case MonoScript _:
@ -208,4 +209,4 @@ namespace nadena.dev.modular_avatar.animation
}
}
}
}
}