Fix T104326: FBX Import: material link b'TransparencyFactor' ignored.

This commit is contained in:
Bastien Montagne 2023-02-06 17:03:37 +01:00
parent 48320b2d9f
commit 7d80f2f971
Notes: blender-bot 2023-02-14 18:09:29 +01:00
Referenced by issue #104326, FBX Import: material link b'TransparencyFactor' ignored
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
"version": (4, 37, 4),
"version": (4, 37, 5),
"blender": (3, 4, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",

View File

@ -3154,7 +3154,7 @@ def load(operator, context, filepath="",
# Intensity actually, not color...
ma_wrap.metallic_texture.image = image
texture_mapping_set(fbx_lnk, ma_wrap.metallic_texture)
elif lnk_type in {b'TransparentColor', b'TransparentFactor'}:
elif lnk_type in {b'TransparentColor', b'TransparencyFactor'}:
ma_wrap.alpha_texture.image = image
texture_mapping_set(fbx_lnk, ma_wrap.alpha_texture)
if use_alpha_decals: