Browse Source

opacity must be transparency

yomotsu 10 years ago
parent
commit
7ff7f23a40

+ 1 - 1
utils/exporters/blender/addons/io_three/constants.py

@@ -222,7 +222,7 @@ SPECULAR = 'specular'
 SPECULAR_COEF = 'specularCoef'
 SHININESS = 'shininess'
 SIDE = 'side'
-OPACITY = 'opacity'
+OPACITY = 'transparency'
 TRANSPARENT = 'transparent'
 WIREFRAME = 'wireframe'
 BLENDING = 'blending'

+ 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(1.0 - material.alpha, 2);
+    return round( material.alpha, 2 );
 
 
 @_material