Browse Source

Merge pull request #4907 from jocabola/dev

Fixed VertexColors support in FBX converter
Mr.doob 11 years ago
parent
commit
21235017e8
1 changed files with 3 additions and 0 deletions
  1. 3 0
      utils/converters/fbx/convert_to_threejs.py

+ 3 - 0
utils/converters/fbx/convert_to_threejs.py

@@ -860,6 +860,9 @@ def extract_fbx_vertex_colors(mesh):
                 vertexId += 1
                 vertexId += 1
             color_indices.append(poly_colors)
             color_indices.append(poly_colors)
 
 
+        layered_color_indices.append( color_indices )
+        layered_color_values.append( color_values )
+
     color_values = []
     color_values = []
     color_indices = []
     color_indices = []