projects
/
libs
/
gl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5be6340
)
Recognize displacement map textures when exporting
author
Mikko Rasa
<tdb@tdb.fi>
Wed, 29 May 2019 17:19:41 +0000
(20:19 +0300)
committer
Mikko Rasa
<tdb@tdb.fi>
Wed, 29 May 2019 17:19:41 +0000
(20:19 +0300)
blender/io_mspgl/export_material.py
patch
|
blob
|
history
diff --git
a/blender/io_mspgl/export_material.py
b/blender/io_mspgl/export_material.py
index 956f51d430b41acb8e48f2fdc42376971c2f3453..8619142e9b4dff53d4543c2b8a3e31dde6cff016 100644
(file)
--- 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: