From 6cb9db1878e6a442c78e7bd66dab43adb02cf93a Mon Sep 17 00:00:00 2001 From: gaoqi8985 <524855611@qq.com> Date: Thu, 13 Apr 2017 13:28:56 +0800 Subject: [PATCH] Update material.py Fixed blender not export the material's opacity --- utils/exporters/blender/addons/io_three/exporter/material.py | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/exporters/blender/addons/io_three/exporter/material.py b/utils/exporters/blender/addons/io_three/exporter/material.py index 8fca0714b3654f..0b0ce4d4569e10 100644 --- a/utils/exporters/blender/addons/io_three/exporter/material.py +++ b/utils/exporters/blender/addons/io_three/exporter/material.py @@ -45,6 +45,7 @@ def _common_attributes(self): 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