From ea6c97d1c7c5ecc76cf834ea40b7a270630a3fde Mon Sep 17 00:00:00 2001 From: ousttrue Date: Fri, 28 May 2021 18:45:13 +0900 Subject: [PATCH] IAnimationImporter --- Assets/UniGLTF/Runtime/UniGLTF/IO/IAnimationImporter.cs | 2 +- Assets/UniGLTF/Runtime/UniGLTF/IO/ImporterContext.cs | 6 +++--- Assets/UniGLTF/Runtime/UniGLTF/IO/RootAnimationImporter.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/IAnimationImporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/IAnimationImporter.cs index 42094ca68..4ea8f4ba2 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/IAnimationImporter.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/IAnimationImporter.cs @@ -5,6 +5,6 @@ namespace UniGLTF { public interface IAnimationImporter { - List Import(glTF gltf, GameObject root, List nodes, List clips, Axes invertAxis); + List Import(glTF gltf, GameObject root, List nodes, Axes invertAxis); } } diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/ImporterContext.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/ImporterContext.cs index 34683b75b..0ba65fb02 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/ImporterContext.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/ImporterContext.cs @@ -51,10 +51,10 @@ namespace UniGLTF TextureFactory = new TextureFactory(textureDeserializer, externalObjectMap .Where(x => x.Value is Texture) - .ToDictionary(x => x.Key, x => (Texture) x.Value)); + .ToDictionary(x => x.Key, x => (Texture)x.Value)); MaterialFactory = new MaterialFactory(externalObjectMap .Where(x => x.Value is Material) - .ToDictionary(x => x.Key, x => (Material) x.Value)); + .ToDictionary(x => x.Key, x => (Material)x.Value)); } #region Source @@ -122,7 +122,7 @@ namespace UniGLTF using (MeasureTime("AnimationImporter")) { - AnimationClips.AddRange(AnimationImporter.Import(GLTF, Root, null, null, InvertAxis)); + AnimationClips.AddRange(AnimationImporter.Import(GLTF, Root, null, InvertAxis)); } await OnLoadHierarchy(awaitCaller, MeasureTime); diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/RootAnimationImporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/RootAnimationImporter.cs index 540e17185..53f7016d6 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/RootAnimationImporter.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/RootAnimationImporter.cs @@ -6,7 +6,7 @@ namespace UniGLTF { public sealed class RootAnimationImporter : IAnimationImporter { - public List Import(glTF gltf, GameObject root, List _nodes, List _clips, Axes invertAxis) + public List Import(glTF gltf, GameObject root, List _nodes, Axes invertAxis) { var animationClips = new List(); if (gltf.animations != null && gltf.animations.Any())