diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-01-18 04:58:49 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-01-18 04:58:49 +0300 |
commit | 84c40946e4197841c6345af32bab15524742fb6b (patch) | |
tree | ea7de2a1c3acd166d8f9acbfd347eb7fd68cabce /render_povray/render.py | |
parent | ee29d3dcc6e025c4627ed9edfb4c32413a4f0702 (diff) |
correct bad spelling; 'indicies' --> 'indices'
Diffstat (limited to 'render_povray/render.py')
-rw-r--r-- | render_povray/render.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/render_povray/render.py b/render_povray/render.py index c4590e43..33ca98ad 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -1054,16 +1054,16 @@ def write_pov(filename, scene=None, info_callback=None): file.write('\n') tabWrite('}\n') - # Face indicies + # Face indices tabWrite('face_indices {\n') tabWrite('%d' % (len(me.faces) + quadCount)) # faces count for fi, f in enumerate(me.faces): fv = faces_verts[fi] material_index = f.material_index if len(fv) == 4: - indicies = (0, 1, 2), (0, 2, 3) + indices = (0, 1, 2), (0, 2, 3) else: - indicies = ((0, 1, 2),) + indices = ((0, 1, 2),) if vcol_layer: col = vcol_layer[fi] @@ -1075,12 +1075,12 @@ def write_pov(filename, scene=None, info_callback=None): if not me_materials or me_materials[material_index] is None: # No materials - for i1, i2, i3 in indicies: + for i1, i2, i3 in indices: file.write(',\n') tabWrite('<%d,%d,%d>' % (fv[i1], fv[i2], fv[i3])) # vert count else: material = me_materials[material_index] - for i1, i2, i3 in indicies: + for i1, i2, i3 in indices: if me.vertex_colors and material.use_vertex_color_paint: # Colour per vertex - vertex colour @@ -1103,17 +1103,17 @@ def write_pov(filename, scene=None, info_callback=None): file.write('\n') tabWrite('}\n') - # normal_indices indicies + # normal_indices indices tabWrite('normal_indices {\n') tabWrite('%d' % (len(me.faces) + quadCount)) # faces count for fi, fv in enumerate(faces_verts): if len(fv) == 4: - indicies = (0, 1, 2), (0, 2, 3) + indices = (0, 1, 2), (0, 2, 3) else: - indicies = ((0, 1, 2),) + indices = ((0, 1, 2),) - for i1, i2, i3 in indicies: + for i1, i2, i3 in indices: if f.use_smooth: file.write(',\n') tabWrite('<%d,%d,%d>' %\ @@ -1134,9 +1134,9 @@ def write_pov(filename, scene=None, info_callback=None): for fi, fv in enumerate(faces_verts): if len(fv) == 4: - indicies = (0, 1, 2), (0, 2, 3) + indices = (0, 1, 2), (0, 2, 3) else: - indicies = ((0, 1, 2),) + indices = ((0, 1, 2),) uv = uv_layer[fi] if len(faces_verts[fi]) == 4: @@ -1144,7 +1144,7 @@ def write_pov(filename, scene=None, info_callback=None): else: uvs = tuple(uv.uv1), tuple(uv.uv2), tuple(uv.uv3) - for i1, i2, i3 in indicies: + for i1, i2, i3 in indices: file.write(',\n') tabWrite('<%d,%d,%d>' %\ (uniqueUVs[uvs[i1]][0],\ |