소스 검색

opacity must be transparency

yomotsu 10 년 전
부모
커밋
7ff7f23a40
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      utils/exporters/blender/addons/io_three/constants.py
  2. 1 1
      utils/exporters/blender/addons/io_three/exporter/api/material.py

+ 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