rename rgb_float_to_byte, rgb_byte_to_float to rgb_float_to_uchar, rgb_uchar_to_float and swap args (math functions mostly have dest arg first like strcpy).

This commit is contained in:
Campbell Barton
2012-01-19 09:09:00 +00:00
parent 4786541285
commit 879c13bbfc
9 changed files with 30 additions and 30 deletions

View File

@@ -301,7 +301,7 @@ def mesh_vcol_add(obj, mode=0):
face_verts = mesh_bmesh_poly_vertices(poly)
poly_cols = mesh_bmesh_poly_elems(poly, col_list)
for i, c in enumerate(poly_cols):
c.color = colors[i % 4]
c.color = colors_get(face_verts[i])
else:
for i, col in enumerate(vcol_lay.data):
face_verts = mesh.faces[i].vertices