X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_texture.py;h=dd8191ce9f108652b2924ee1a77fbd0197d0f94c;hb=HEAD;hp=2860d461d8874efd708b3e424332dbd42aaf2da3;hpb=893c0645802c46eb60b04a87e79a5a4d69e32ea2;p=libs%2Fgl.git diff --git a/blender/io_mspgl/export_texture.py b/blender/io_mspgl/export_texture.py index 2860d461..2269e27a 100644 --- a/blender/io_mspgl/export_texture.py +++ b/blender/io_mspgl/export_texture.py @@ -38,9 +38,8 @@ class TextureExporter: if tex_node.use_mipmap: tex_res.statements.append(Statement("generate_mipmap", True)) - colorspace = image.colorspace_settings.name - if len(channels)==1 and colorspace=='sRGB': - raise Exception("Unsupported configuration on texture {}: Grayscale with sRGB".format(image.name)) + from .texture import Texture + texture = Texture(tex_node, channels) invert_mask = sum(1<