From 10c6f3c36992d2455c5bdf28c0c7bc21006d8934 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Tue, 28 Jun 2022 17:11:14 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9B=B8=E3=81=93=E3=81=86=E3=81=A8=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F=E3=81=AE=E3=81=AF=E3=80=81=E3=81=93?= =?UTF-8?q?=E3=82=93=E3=81=AA=E6=84=9F=E3=81=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UniGLTF/Editor/Animation/EditorAnimationExporter.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Assets/UniGLTF/Editor/Animation/EditorAnimationExporter.cs b/Assets/UniGLTF/Editor/Animation/EditorAnimationExporter.cs index 1e482b4ef..f7c248c99 100644 --- a/Assets/UniGLTF/Editor/Animation/EditorAnimationExporter.cs +++ b/Assets/UniGLTF/Editor/Animation/EditorAnimationExporter.cs @@ -13,16 +13,19 @@ namespace UniGLTF static List GetAnimationClips(GameObject Copy) { var clips = new List(); + var animator = Copy.GetComponent(); - var animation = Copy.GetComponent(); if (animator != null) { - clips = AnimationExporter.GetAnimationClips(animator); + clips.AddRange(AnimationExporter.GetAnimationClips(animator)); } + + var animation = Copy.GetComponent(); if (animation != null) { - clips = AnimationExporter.GetAnimationClips(animation); + clips.AddRange(AnimationExporter.GetAnimationClips(animation)); } + return clips; }