[Bf-extensions-cvs] SVN commit: /data/svn/bf-extensions [4041] trunk/py/scripts/addons/ io_scene_obj/export_obj.py: revert r4031, the user was incorrect about the bug.

Campbell Barton ideasman42 at gmail.com
Wed Dec 12 11:28:14 CET 2012


Revision: 4041
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4041
Author:   campbellbarton
Date:     2012-12-12 10:28:12 +0000 (Wed, 12 Dec 2012)
Log Message:
-----------
revert r4031, the user was incorrect about the bug.

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-extensions&revision=4031

Modified Paths:
--------------
    trunk/py/scripts/addons/io_scene_obj/export_obj.py

Modified: trunk/py/scripts/addons/io_scene_obj/export_obj.py
===================================================================
--- trunk/py/scripts/addons/io_scene_obj/export_obj.py	2012-12-12 09:22:30 UTC (rev 4040)
+++ trunk/py/scripts/addons/io_scene_obj/export_obj.py	2012-12-12 10:28:12 UTC (rev 4041)
@@ -79,7 +79,7 @@
                 fw('Ni %.6f\n' % mat.ior)  # Refraction index
             else:
                 fw('Ni %.6f\n' % 1.0)
-            fw('d %.6f\n' % (1.0 - mat.alpha))  # Alpha (obj uses 'd' for dissolve)
+            fw('d %.6f\n' % 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:



More information about the Bf-extensions-cvs mailing list