From: Mikko Rasa Date: Wed, 29 May 2019 17:19:41 +0000 (+0300) Subject: Recognize displacement map textures when exporting X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=commitdiff_plain;h=5c3e77f72d30b93ab775eb41eba4efcdabb0f074 Recognize displacement map textures when exporting --- diff --git a/blender/io_mspgl/export_material.py b/blender/io_mspgl/export_material.py index 956f51d4..8619142e 100644 --- a/blender/io_mspgl/export_material.py +++ b/blender/io_mspgl/export_material.py @@ -37,7 +37,10 @@ class MaterialExporter: if s.use_map_color_diffuse: textures["diffuse_map"] = s.texture elif s.use_map_normal: - textures["normal_map"] = s.texture + if s.texture.use_normal_map: + textures["normal_map"] = s.texture + else: + textures["displace_map"] = s.texture if material.technique: if not material.inherit_tech: