From 8f8fcfaad1f1306c1fb422ddef752e3cae2fea29 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Thu, 5 Oct 2017 16:34:56 +0200 Subject: Fix (unreported) broken FBX import after adding forth alpha component to vcol. --- io_scene_fbx/__init__.py | 4 ++-- io_scene_fbx/import_fbx.py | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/io_scene_fbx/__init__.py b/io_scene_fbx/__init__.py index 4133e606..e243b877 100644 --- a/io_scene_fbx/__init__.py +++ b/io_scene_fbx/__init__.py @@ -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": "", diff --git a/io_scene_fbx/import_fbx.py b/io_scene_fbx/import_fbx.py index 77540eea..ecbbb898 100644 --- a/io_scene_fbx/import_fbx.py +++ b/io_scene_fbx/import_fbx.py @@ -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, ) -- cgit v1.2.3