소스 검색

Update material.py

Fixed blender  not export the material's opacity
gaoqi8985 8 년 전
부모
커밋
6cb9db1878
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      utils/exporters/blender/addons/io_three/exporter/material.py

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

@@ -45,6 +45,7 @@ class Material(base_classes.BaseNode):
 
         if api.material.transparent(self.node):
             self[constants.TRANSPARENT] = True
+            self[constants.OPACITY] = api.material.opacity(self.node)
 
         if api.material.double_sided(self.node):
             self[constants.SIDE] = constants.SIDE_DOUBLE