From a85c4fefbffae9a1f754855af6e8dc107bc4b47c Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Tue, 2 Nov 2021 13:11:03 +0200 Subject: [PATCH] Export texture's mipmap levels as 1 if mipmaps are not used --- blender/io_mspgl/export_texture.py | 2 ++ 1 file changed, 2 insertions(+) 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: -- 2.45.2