Преглед на файлове

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