From 29c4686af4e3484611d3081310c165129c6dfd97 Mon Sep 17 00:00:00 2001 From: Masataka SUMI Date: Thu, 3 Nov 2022 18:30:09 +0900 Subject: [PATCH] Suppress warning logs when loading vrm10 models. --- .../Runtime/Texture/Importer/UnityTextureDeserializer.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/UnityTextureDeserializer.cs b/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/UnityTextureDeserializer.cs index 2d5a1b174..0dadbec63 100644 --- a/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/UnityTextureDeserializer.cs +++ b/Assets/VRMShaders/GLTF/IO/Runtime/Texture/Importer/UnityTextureDeserializer.cs @@ -17,8 +17,14 @@ 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.LogWarning($"Texture image MIME type `{textureInfo.DataMimeType}` is not supported."); + Debug.Log($"Texture image MIME type `{textureInfo.DataMimeType}` is not supported."); break; }