Permalink
Browse files

Merge pull request #3 from endavid/patch-1

Updated color vertices export to work with Blender 2.62.
  • Loading branch information...
2 parents 1b60244 + 3d0b6b7 commit 88ed7c7b2278a508084e40d135ff860107254d67 @jlamarche committed Mar 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Blender Export/objc_blend_2.57 (RC1)/io_export_objective_c_header.py
@@ -161,7 +161,7 @@ def do_export(context, props, filepath):
typedef struct vertexDataColored vertexDataColored;\n\
typedef vertexDataColored* vertexDataColoredPtr;\n\n\n')
writeString(file, 'static const vertexDataColored %sVertexData[] = {\n' % basename)
- color_layer = mesh.active_vertex_color
+ color_layer = mesh.vertex_colors.active
for face in mesh.faces:
if len(face.vertices) == 3:
faceC = color_layer.data[face.index]

0 comments on commit 88ed7c7

Please sign in to comment.