浏览代码

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