Fix (unreported) broken FBX import after adding forth alpha component to vcol.

This commit is contained in:
Bastien Montagne 2017-10-05 16:34:56 +02:00
parent 4632c73bbf
commit 8f8fcfaad1
2 changed files with 3 additions and 4 deletions

View File

@ -21,8 +21,8 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier",
"version": (3, 7, 13),
"blender": (2, 77, 0),
"version": (3, 7, 14),
"blender": (2, 79, 1),
"location": "File > Import-Export",
"description": "FBX IO meshes, UV's, vertex colors, materials, textures, cameras, lamps and actions",
"warning": "",

View File

@ -1000,12 +1000,11 @@ def blen_read_geom_layer_color(fbx_obj, mesh):
print("%r %r missing data" % (layer_id, fbx_layer_name))
continue
# ignore alpha layer (read 4 items into 3)
blen_read_geom_array_mapped_polyloop(
mesh, blen_data, "color",
fbx_layer_data, fbx_layer_index,
fbx_layer_mapping, fbx_layer_ref,
4, 3, layer_id,
4, 4, layer_id,
)