mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-09 20:38:56 -05:00
fix ReadMeta
This commit is contained in:
@@ -47,8 +47,14 @@ namespace VRM
|
||||
meta.Reference = gltfMeta.reference;
|
||||
meta.Title = gltfMeta.title;
|
||||
|
||||
if (createThumbnail)
|
||||
if (gltfMeta.texture >= 0 && gltfMeta.texture < Textures.Count)
|
||||
{
|
||||
// ロード済み
|
||||
meta.Thumbnail = Textures[gltfMeta.texture].Texture;
|
||||
}
|
||||
else if (createThumbnail)
|
||||
{
|
||||
// 作成する(先行ロード用)
|
||||
if(gltfMeta.texture >= 0 && gltfMeta.texture < VRM.textures.Count)
|
||||
{
|
||||
var t = new TextureItem(VRM, gltfMeta.texture);
|
||||
|
||||
Reference in New Issue
Block a user