From 97a0e116137b2a8f683bed2bedb42b0b1c0b1e3d Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 30 May 2018 15:05:10 +0900 Subject: [PATCH] fix ReadMeta --- Scripts/Format/VRMImporterContext.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Scripts/Format/VRMImporterContext.cs b/Scripts/Format/VRMImporterContext.cs index cf81780de..20acf4a93 100644 --- a/Scripts/Format/VRMImporterContext.cs +++ b/Scripts/Format/VRMImporterContext.cs @@ -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);