mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-10-02 07:42:25 -05:00
check index range
This commit is contained in:
@@ -45,7 +45,7 @@ namespace VRM
|
||||
meta.ContactInformation = gltfMeta.contactInformation;
|
||||
meta.Reference = gltfMeta.reference;
|
||||
meta.Title = gltfMeta.title;
|
||||
if (gltfMeta.texture != -1)
|
||||
if (gltfMeta.texture >=0 && gltfMeta.texture< Textures.Count)
|
||||
{
|
||||
meta.Thumbnail = Textures[gltfMeta.texture].Texture;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user