mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-11 04:54:17 -05:00
Update UniGLTF
This commit is contained in:
parent
689fbe3ca9
commit
11304b71d5
|
|
@ -456,9 +456,10 @@ namespace VRM
|
|||
#region LoadVrmAsync
|
||||
static IEnumerator LoadTextures(VRMImporterContext context)
|
||||
{
|
||||
foreach (var gltfTexture in context.GLTF.textures)
|
||||
for(int i=0; i<context.GLTF.textures.Count; ++i)
|
||||
{
|
||||
var x = UniGLTF.gltfImporter.ImportTexture(context.GLTF, gltfTexture.source);
|
||||
var x = new TextureItem(context.GLTF, i);
|
||||
x.Process();
|
||||
context.Textures.Add(x);
|
||||
yield return null;
|
||||
}
|
||||
|
|
@ -573,7 +574,12 @@ namespace VRM
|
|||
{
|
||||
var index = i;
|
||||
parent.AddTask(Scheduler.MainThread,
|
||||
() => gltfImporter.ImportTexture(ctx.GLTF, index))
|
||||
() =>
|
||||
{
|
||||
var texture = new TextureItem(ctx.GLTF, index);
|
||||
texture.Process();
|
||||
return texture;
|
||||
})
|
||||
.ContinueWith(Scheduler.ThreadPool, x => ctx.Textures.Add(x));
|
||||
}
|
||||
})
|
||||
|
|
|
|||
2
UniGLTF
2
UniGLTF
|
|
@ -1 +1 @@
|
|||
Subproject commit 04f8a4cea3f33a080236342d8a5c95eec9cd8f50
|
||||
Subproject commit e4ccadd84c75530cac5e54158144bc534f64ff1a
|
||||
Loading…
Reference in New Issue
Block a user