diff --git a/Core/Scripts/IO/TextureConverter.cs b/Core/Scripts/IO/TextureConverter.cs index 3f1df05..de72a2c 100644 --- a/Core/Scripts/IO/TextureConverter.cs +++ b/Core/Scripts/IO/TextureConverter.cs @@ -113,6 +113,9 @@ private Material GetEncoder() public Texture2D GetImportTexture(Texture2D texture) { +#if UNITY_WEBGL && !UNITY_EDITOR + return texture; +#endif var mat = GetEncoder(); var converted = TextureConverter.Convert(texture, glTFTextureTypes.Normal, null, mat); TextureConverter.AppendTextureExtension(converted, m_extension); @@ -121,6 +124,9 @@ public Texture2D GetImportTexture(Texture2D texture) public Texture2D GetExportTexture(Texture2D texture) { +#if UNITY_WEBGL && !UNITY_EDITOR + return texture; +#endif var mat = GetDecoder(); var converted = TextureConverter.Convert(texture, glTFTextureTypes.Normal, null, mat); TextureConverter.RemoveTextureExtension(converted, m_extension);