From: Mikko Rasa Date: Tue, 2 Nov 2021 11:11:03 +0000 (+0200) Subject: Export texture's mipmap levels as 1 if mipmaps are not used X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=a85c4fefbffae9a1f754855af6e8dc107bc4b47c;p=libs%2Fgl.git Export texture's mipmap levels as 1 if mipmaps are not used --- diff --git a/blender/io_mspgl/export_texture.py b/blender/io_mspgl/export_texture.py index dc291c9c..c304fd7e 100644 --- a/blender/io_mspgl/export_texture.py +++ b/blender/io_mspgl/export_texture.py @@ -39,6 +39,8 @@ class TextureExporter: from .util import basename fn = basename(image.filepath) if not invert_green and fn: + if not tex_node.use_mipmap: + tex_res.statements.append(Statement("mipmap_levels", 1)) srgb = "_srgb" if colorspace=='sRGB' else "" tex_res.statements.append(Statement("external_image"+srgb, fn)) else: