diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-12-09 14:51:27 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-12-09 14:51:27 +0400 |
commit | 9ef28b56eb410fa96a7e733aee2da0d883837dcd (patch) | |
tree | 822ba8dff00793bd83b31f168f885761d9da2cfb | |
parent | a7e025424149ecd0fe7084e08c84aea36032d353 (diff) |
fix [#33453] OBJ Export, "d" Value is Invalid in ".mtl" File
-rw-r--r-- | io_scene_obj/export_obj.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/io_scene_obj/export_obj.py b/io_scene_obj/export_obj.py index a0926cc4..75443c3d 100644 --- a/io_scene_obj/export_obj.py +++ b/io_scene_obj/export_obj.py @@ -79,7 +79,7 @@ def write_mtl(scene, filepath, path_mode, copy_set, mtl_dict): fw('Ni %.6f\n' % mat.ior) # Refraction index else: fw('Ni %.6f\n' % 1.0) - fw('d %.6f\n' % mat.alpha) # Alpha (obj uses 'd' for dissolve) + fw('d %.6f\n' % (1.0 - mat.alpha)) # Alpha (obj uses 'd' for dissolve) # 0 to disable lighting, 1 for ambient & diffuse only (specular color set to black), 2 for full lighting. if mat.use_shadeless: |