mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-22 23:18:01 -05:00
IAnimationImporter
This commit is contained in:
parent
8d5f61fe42
commit
ea6c97d1c7
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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())
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user