From 908343c794d81ec196e92c2936ffbf5dad99613d Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 5 Sep 2022 18:44:43 +0900 Subject: [PATCH] =?UTF-8?q?=E6=9C=89=E3=81=A3=E3=81=A6=E3=82=82=E7=84=A1?= =?UTF-8?q?=E3=81=8F=E3=81=A6=E3=82=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../IO/MaterialIO/GltfPbrMaterialImporter.cs | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/GltfPbrMaterialImporter.cs b/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/GltfPbrMaterialImporter.cs index 21087bfec..cb5c8767e 100644 --- a/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/GltfPbrMaterialImporter.cs +++ b/Assets/UniGLTF/Runtime/UniGLTF/IO/MaterialIO/GltfPbrMaterialImporter.cs @@ -78,10 +78,6 @@ namespace UniGLTF { if (GltfPbrTextureImporter.TryStandardTexture(data, src, out var key, out var desc)) { - if (string.IsNullOrEmpty(desc.UnityObjectName)) - { - throw new ArgumentNullException(); - } standardTexDesc = desc; } } @@ -99,10 +95,6 @@ namespace UniGLTF { if (GltfPbrTextureImporter.TryBaseColorTexture(data, src, out var key, out var desc)) { - if (string.IsNullOrEmpty(desc.UnityObjectName)) - { - throw new ArgumentNullException(); - } textureSlots.Add("_MainTex", desc); } } @@ -129,10 +121,6 @@ namespace UniGLTF actions.Add(material => material.EnableKeyword("_NORMALMAP")); if (GltfPbrTextureImporter.TryNormalTexture(data, src, out var key, out var desc)) { - if (string.IsNullOrEmpty(desc.UnityObjectName)) - { - throw new ArgumentNullException(); - } textureSlots.Add("_BumpMap", desc); floatValues.Add("_BumpScale", src.normalTexture.scale); } @@ -174,10 +162,6 @@ namespace UniGLTF { if (GltfPbrTextureImporter.TryEmissiveTexture(data, src, out var key, out var desc)) { - if (string.IsNullOrEmpty(desc.UnityObjectName)) - { - throw new ArgumentNullException(); - } textureSlots.Add("_EmissionMap", desc); } }