[Bf-extensions-cvs] [8f8fcfaa] master: Fix (unreported) broken FBX import after adding forth alpha component to vcol.

Bastien Montagne noreply at git.blender.org
Thu Oct 5 16:35:50 CEST 2017


Commit: 8f8fcfaad1f1306c1fb422ddef752e3cae2fea29
Author: Bastien Montagne
Date:   Thu Oct 5 16:34:56 2017 +0200
Branches: master
https://developer.blender.org/rBA8f8fcfaad1f1306c1fb422ddef752e3cae2fea29

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

===================================================================

M	io_scene_fbx/__init__.py
M	io_scene_fbx/import_fbx.py

===================================================================

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,
                 )



More information about the Bf-extensions-cvs mailing list