Browse Source

transparency attribute is exported

Vitaly Ovchinnikov 10 years ago
parent
commit
775dca6f86
1 changed files with 3 additions and 0 deletions
  1. 3 0
      utils/exporters/blender/addons/io_three/exporter/material.py

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

@@ -43,6 +43,9 @@ class Material(base_classes.BaseNode):
 
         self[constants.BLENDING] = api.material.blending(self.node)
 
+        if api.material.transparent(self.node):
+            self[constants.TRANSPARENT] = True
+
         self[constants.DEPTH_TEST] = api.material.depth_test(self.node)
 
         self[constants.DEPTH_WRITE] = api.material.depth_write(self.node)