From 6a832fe1771f8c7bca0faa0d383fbbab062a1c56 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Sun, 16 Jun 2019 11:48:52 +0300 Subject: [PATCH] Set both min and mag filters when exporting textures --- blender/io_mspgl/export_texture.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blender/io_mspgl/export_texture.py b/blender/io_mspgl/export_texture.py index c3c58c3b..9f520cbd 100644 --- a/blender/io_mspgl/export_texture.py +++ b/blender/io_mspgl/export_texture.py @@ -10,17 +10,17 @@ class TextureExporter: if texture.use_interpolation: if texture.use_mipmap: - tex_res.statements.append(Statement("min_filter", Token('LINEAR_MIPMAP_LINEAR'))) + tex_res.statements.append(Statement("filter", Token('LINEAR_MIPMAP_LINEAR'))) tex_res.statements.append(Statement("generate_mipmap", True)) else: - tex_res.statements.append(Statement("min_filter", Token('LINEAR'))) + tex_res.statements.append(Statement("filter", Token('LINEAR'))) tex_res.statements.append(Statement("max_anisotropy", texture.filter_eccentricity)) else: if texture.use_mipmap: - tex_res.statements.append(Statement("min_filter", Token('NEAREST_MIPMAP_NEAREST'))) + tex_res.statements.append(Statement("filter", Token('NEAREST_MIPMAP_NEAREST'))) tex_res.statements.append(Statement("generate_mipmap", True)) else: - tex_res.statements.append(Statement("min_filter", Token('NEAREST'))) + tex_res.statements.append(Statement("filter", Token('NEAREST'))) if not self.inline_data and texture.image.filepath: tex_res.statements.append(Statement("external_image", os.path.basename(texture.image.filepath))) -- 2.45.2