From 4fd458200d3bc4543a6d8acff23b02dae5306d56 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 11 Mar 2022 23:42:57 +0200 Subject: [PATCH] Use R8 format when extracting a single channel from an image --- blender/io_mspgl/export_texture.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' -- 2.45.2