mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-09 20:38:56 -05:00
Merge pull request #1243 from ousttrue/warning/fix_async
lambda `Func<Task<AnimationClip>>` cause warning. Use Task.FromResult
This commit is contained in:
@@ -133,9 +133,10 @@ namespace UniGLTF
|
||||
{
|
||||
foreach (var (key, gltfAnimation) in Enumerable.Zip(AnimationImporterUtil.EnumerateSubAssetKeys(GLTF), GLTF.animations, (x, y) => (x, y)))
|
||||
{
|
||||
await AnimationClipFactory.LoadAnimationClipAsync(key, async () =>
|
||||
await AnimationClipFactory.LoadAnimationClipAsync(key, () =>
|
||||
{
|
||||
return AnimationImporterUtil.ConvertAnimationClip(GLTF, gltfAnimation, InvertAxis.Create());
|
||||
var clip = AnimationImporterUtil.ConvertAnimationClip(GLTF, gltfAnimation, InvertAxis.Create());
|
||||
return Task.FromResult(clip);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user