Skip to content

Commit

Permalink
Update material.py
Browse files Browse the repository at this point in the history
Fixed blender  not export the material's opacity
  • Loading branch information
gaoqi8985 authored Apr 13, 2017
1 parent f891c79 commit 6cb9db1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6cb9db1

Please sign in to comment.