From a3a2ded9086fd5740cf236f013581f94bd7c9b35 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Thu, 28 Jun 2018 15:05:50 +0900 Subject: [PATCH] Allow Texture not Texture2D --- Scripts/Format/glTF_VRM_Material.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Scripts/Format/glTF_VRM_Material.cs b/Scripts/Format/glTF_VRM_Material.cs index a7eeecfae..5f88974c0 100644 --- a/Scripts/Format/glTF_VRM_Material.cs +++ b/Scripts/Format/glTF_VRM_Material.cs @@ -131,7 +131,7 @@ namespace VRM case ShaderUtil.ShaderPropertyType.TexEnv: { - var texture = m.GetTexture(name) as Texture2D; + var texture = m.GetTexture(name); if (texture != null) { var value = textures.IndexOf(texture);