IAnimationImporter

This commit is contained in:
ousttrue 2021-05-28 18:45:13 +09:00
parent 8d5f61fe42
commit ea6c97d1c7
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())