Browse Source

opacity value of the Blender exporter is wrong

yomotsu 10 years ago
parent
commit
acdbbeb576
1 changed files with 1 additions and 1 deletions
  1. 1 1
      utils/exporters/blender/addons/io_three/exporter/api/material.py

+ 1 - 1
utils/exporters/blender/addons/io_three/exporter/api/material.py

@@ -128,7 +128,7 @@ def normal_map(material):
 @_material
 def opacity(material):
     logger.debug('material.opacity(%s)', material)
-    return round(material.alpha - 1.0, 2);
+    return round(1.0 - material.alpha, 2);
 
 
 @_material