From 2c69bb2b7611395da8623fd1178458b5d6784f86 Mon Sep 17 00:00:00 2001 From: ZenithVal <88603991+ZenithVal@users.noreply.github.com> Date: Sat, 16 Mar 2024 02:55:34 -0400 Subject: [PATCH] Fix Audio Clip References in Animator (#780) For the new VRC Play Audio State Behavior available in Open Beta --- Editor/Animation/DeepClone.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Editor/Animation/DeepClone.cs b/Editor/Animation/DeepClone.cs index 0636bae1..09e7b99e 100644 --- a/Editor/Animation/DeepClone.cs +++ b/Editor/Animation/DeepClone.cs @@ -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 } } } -} \ No newline at end of file +}