From fd293b5f4c43a716f8df0cf1a0c5bd35ae192eb7 Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Thu, 3 Nov 2022 18:34:13 +0900 Subject: [PATCH] fix --- .../Texture/Importer/UnityTextureDeserializer.cs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/UnityTextureDeserializer.cs b/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/UnityTextureDeserializer.cs index 0dadbec63..14ce16d55 100644 --- a/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/UnityTextureDeserializer.cs +++ b/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/UnityTextureDeserializer.cs @@ -17,14 +17,15 @@ namespace VRMShaders break; case "image/jpeg": break; - case "": - Debug.Log($"Texture image MIME type is empty."); - break; - case null: - Debug.Log($"Texture image MIME type is empty."); - break; default: - Debug.Log($"Texture image MIME type `{textureInfo.DataMimeType}` is not supported."); + if (string.IsNullOrEmpty(textureInfo.DataMimeType)) + { + Debug.Log($"Texture image MIME type is empty."); + } + else + { + Debug.Log($"Texture image MIME type `{textureInfo.DataMimeType}` is not supported."); + } break; }