Skip to content
Snippets Groups Projects
Commit dbb54eee authored by Sandy Carter's avatar Sandy Carter Committed by Bastien Montagne
Browse files

Enable material transparency when its alpha is below 1.0.

Differential Revision: https://developer.blender.org/D1934
parent fb768079
Branches
Tags
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
bl_info = { bl_info = {
"name": "FBX format", "name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier", "author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
"version": (3, 7, 2), "version": (3, 7, 3),
"blender": (2, 77, 0), "blender": (2, 77, 0),
"location": "File > Import-Export", "location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions", "description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
......
...@@ -1305,6 +1305,9 @@ def blen_read_material(fbx_tmpl, fbx_obj, settings): ...@@ -1305,6 +1305,9 @@ def blen_read_material(fbx_tmpl, fbx_obj, settings):
ma.diffuse_color = ma_diff ma.diffuse_color = ma_diff
ma.specular_color = ma_spec ma.specular_color = ma_spec
ma.alpha = ma_alpha ma.alpha = ma_alpha
if ma_alpha < 1.0:
ma.use_transparency = True
ma.transparency_method = 'RAYTRACE'
ma.specular_intensity = ma_spec_intensity ma.specular_intensity = ma_spec_intensity
ma.specular_hardness = ma_spec_hardness * 5.10 + 1.0 ma.specular_hardness = ma_spec_hardness * 5.10 + 1.0
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment