Skip to content

Commit

Permalink
roll back normal textures enforcing PNG
Browse files Browse the repository at this point in the history
  • Loading branch information
hybridherbst committed Feb 4, 2023
1 parent 94f7c13 commit 47ac6b5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,7 @@ private string GetImageOutputPath(Texture texture, TextureExportSettings texture
break;
}

var canExportAsJpeg =
!textureHasAlpha && settings.UseTextureFileTypeHeuristic && textureSlot != TextureMapType.Normal;
var canExportAsJpeg = !textureHasAlpha && settings.UseTextureFileTypeHeuristic;
var desiredExtension = canExportAsJpeg ? ".jpg" : ".png";
if (textureSlot == TextureMapType.Custom_HDR)
desiredExtension = ".exr";
Expand Down

0 comments on commit 47ac6b5

Please sign in to comment.