Merge pull request #991 from ousttrue/fix/IAnimationImporter_remove_unused_argument

IAnimationImporter
This commit is contained in:
PoChang007 2021-05-28 18:46:23 +09:00 committed by GitHub
commit 4d207c643d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -5,6 +5,6 @@ namespace UniGLTF
{
public interface IAnimationImporter
{
List<AnimationClip> Import(glTF gltf, GameObject root, List<Transform> nodes, List<AnimationClip> clips, Axes invertAxis);
List<AnimationClip> Import(glTF gltf, GameObject root, List<Transform> nodes, Axes invertAxis);
}
}

View File

@ -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);

View File

@ -6,7 +6,7 @@ namespace UniGLTF
{
public sealed class RootAnimationImporter : IAnimationImporter
{
public List<AnimationClip> Import(glTF gltf, GameObject root, List<Transform> _nodes, List<AnimationClip> _clips, Axes invertAxis)
public List<AnimationClip> Import(glTF gltf, GameObject root, List<Transform> _nodes, Axes invertAxis)
{
var animationClips = new List<AnimationClip>();
if (gltf.animations != null && gltf.animations.Any())