From: Mikko Rasa Date: Sun, 16 Jun 2019 08:48:52 +0000 (+0300) Subject: Set both min and mag filters when exporting textures X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=6a832fe1771f8c7bca0faa0d383fbbab062a1c56;p=libs%2Fgl.git Set both min and mag filters when exporting textures --- 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)))