X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_texture.py;h=dd8191ce9f108652b2924ee1a77fbd0197d0f94c;hb=HEAD;hp=8e107a718a3644dba03ffc13393c587470c95f97;hpb=4fd458200d3bc4543a6d8acff23b02dae5306d56;p=libs%2Fgl.git diff --git a/blender/io_mspgl/export_texture.py b/blender/io_mspgl/export_texture.py index 8e107a71..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<