mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-11 13:29:41 -05:00
Merge pull request #748 from ousttrue/fix/runtime_load
AsIEnumerator で同期的に Task を消化するのができてない。応急処置
This commit is contained in:
@@ -28,12 +28,9 @@ namespace UniGLTF
|
||||
{
|
||||
string m_textureName = default;
|
||||
|
||||
var imageBytes = await Task.Run(() =>
|
||||
{
|
||||
var imageIndex = gltf.GetImageIndexFromTextureIndex(index);
|
||||
var segments = gltf.GetImageBytes(storage, imageIndex, out m_textureName);
|
||||
return ToArray(segments);
|
||||
});
|
||||
var imageIndex = gltf.GetImageIndexFromTextureIndex(index);
|
||||
var segments = gltf.GetImageBytes(storage, imageIndex, out m_textureName);
|
||||
var imageBytes = ToArray(segments);
|
||||
|
||||
//
|
||||
// texture from image(png etc) bytes
|
||||
|
||||
Reference in New Issue
Block a user