From d75b720b0346ed1c89473722af033844ac508ddf Mon Sep 17 00:00:00 2001 From: CroakFang <1605296300@qq.com> Date: Wed, 9 Nov 2022 21:39:35 +0800 Subject: [PATCH] bug fix --- Assets/Scripts/UmaViewerUI.cs | 2 +- Assets/Scripts/umamusume/Gallop/FaceDrivenKeyTarget.cs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/UmaViewerUI.cs b/Assets/Scripts/UmaViewerUI.cs index 74f704f..ffdd9f2 100644 --- a/Assets/Scripts/UmaViewerUI.cs +++ b/Assets/Scripts/UmaViewerUI.cs @@ -229,7 +229,7 @@ public class UmaViewerUI : MonoBehaviour { currentFaceDrivenKeyTarget = target; - foreach (UmaUIContainer ui in FacialList.GetComponentsInChildren()) + foreach (UmaUIContainer ui in FacialList.GetComponentsInChildren(true)) { Destroy(ui.gameObject); } diff --git a/Assets/Scripts/umamusume/Gallop/FaceDrivenKeyTarget.cs b/Assets/Scripts/umamusume/Gallop/FaceDrivenKeyTarget.cs index 6c9316d..3374a8b 100644 --- a/Assets/Scripts/umamusume/Gallop/FaceDrivenKeyTarget.cs +++ b/Assets/Scripts/umamusume/Gallop/FaceDrivenKeyTarget.cs @@ -319,6 +319,7 @@ namespace Gallop foreach (var trs in RotationRecorder) { trs.Key.transform.localRotation = RotationConvert.fromMaya(trs.Value); + var tmp = trs.Key.transform.localEulerAngles; } if (Container.EnablePhysics) {