Skip to content

Commit

Permalink
added output which gtlf file, in case a texture can't be imported
Browse files Browse the repository at this point in the history
  • Loading branch information
pfcDorn committed Aug 18, 2023
1 parent 9d0b8a1 commit 6a06f3a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async Task<Texture2D> CheckMimeTypeAndLoadImage(GLTFImage image, Texture2D textu
texture.LoadImage(data, markGpuOnly);
break;
case "image/exr":
Debug.LogError("EXR images are not supported", image);
Debug.Log(LogType.Warning, "EXR images are not supported. The texture " + texture.name + " won't be imported. GLTF Filename: "+_gltfFileName);
break;
case "image/ktx2":
string textureName = texture.name;
Expand All @@ -164,7 +164,7 @@ async Task<Texture2D> CheckMimeTypeAndLoadImage(GLTFImage image, Texture2D textu

ktxTexture.Dispose();
#else
Debug.Log(LogType.Warning, "The com.atteneder.ktx package v1.3+ is required to load KTX2 textures! The texture " + texture.name + " won't be imported.");
Debug.Log(LogType.Warning, "The com.atteneder.ktx package v1.3+ is required to load KTX2 textures! The texture " + texture.name + " won't be imported. GLTF Filename: "+_gltfFileName);
await Task.CompletedTask;
texture = null;
#endif
Expand Down

0 comments on commit 6a06f3a

Please sign in to comment.