Remove conditions for WEBGL when exporting normal map textures

This commit is contained in:
yutopp
2019-01-23 23:51:25 +09:00
parent f5ae88c071
commit 21dad1497e

View File

@@ -121,10 +121,6 @@ namespace UniGLTF
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);