]> git.tdb.fi Git - libs/gl.git/commitdiff
Recognize displacement map textures when exporting
authorMikko Rasa <tdb@tdb.fi>
Wed, 29 May 2019 17:19:41 +0000 (20:19 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 29 May 2019 17:19:41 +0000 (20:19 +0300)
blender/io_mspgl/export_material.py

index 956f51d430b41acb8e48f2fdc42376971c2f3453..8619142e9b4dff53d4543c2b8a3e31dde6cff016 100644 (file)
@@ -37,7 +37,10 @@ class MaterialExporter:
                                if s.use_map_color_diffuse:
                                        textures["diffuse_map"] = s.texture
                                elif s.use_map_normal:
                                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:
 
                if material.technique:
                        if not material.inherit_tech: