From 5c3e77f72d30b93ab775eb41eba4efcdabb0f074 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Wed, 29 May 2019 20:19:41 +0300 Subject: [PATCH] Recognize displacement map textures when exporting --- blender/io_mspgl/export_material.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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: -- 2.45.2