fixes for vertex color (found when brining X3D import back)
authorCampbell Barton <ideasman42@gmail.com>
Thu, 15 Mar 2012 05:40:33 +0000 (05:40 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 15 Mar 2012 05:40:33 +0000 (05:40 +0000)
commitb40386a3e304f6e649bbe93194e1b7b999931688
treef37b7e1b6b143a7fef7787a5fe17877847f0f262
parent7081abf51f071877c5015c830af64bcfaa1becc7
fixes for vertex color (found when brining X3D import back)
- tessface vertex color had the wrong sized array passing to rna_iterator_array_begin
- re-calculating tessface's would clear them if they were already created (own mistake)
- ED_mesh_color_add initialized tessface vertex colors from the loop color array

also made rna's mesh.tessface_vertex_colors.new() work like tessface_uv_textures.new()
where layers can be added as long as polygons are not present.
source/blender/editors/mesh/mesh_data.c
source/blender/makesrna/intern/rna_mesh.c