From: Mikko Rasa Date: Fri, 11 Mar 2022 21:42:57 +0000 (+0200) Subject: Use R8 format when extracting a single channel from an image X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=4fd458200d3bc4543a6d8acff23b02dae5306d56;p=libs%2Fgl.git Use R8 format when extracting a single channel from an image --- diff --git a/blender/io_mspgl/export_texture.py b/blender/io_mspgl/export_texture.py index 2860d461..8e107a71 100644 --- a/blender/io_mspgl/export_texture.py +++ b/blender/io_mspgl/export_texture.py @@ -67,7 +67,7 @@ class TextureExporter: if len(channels)==4: fmt = 'SRGB8_ALPHA8' if colorspace=='sRGB' else 'RGBA8' elif len(channels)==1: - fmt = 'LUMINANCE8' + fmt = 'LUMINANCE8' if channels[0]=='Y' else 'R8' else: fmt = 'SRGB8' if colorspace=='sRGB' else 'RGB8'