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; }