X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=blender%2Fio_mspgl%2Fexport_texture.py;h=2269e27ae175a514670c70a295aaada994228dbb;hb=6fbc3217471932e1e46a694e4c4376673010f814;hp=8e107a718a3644dba03ffc13393c587470c95f97;hpb=46e04b29e95019e4f384d321d29adea1e5fa3ea9;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<