diff options
author | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2013-12-15 15:35:11 +0400 |
---|---|---|
committer | Maurice Raybaud <mauriceraybaud@hotmail.fr> | 2013-12-15 15:35:11 +0400 |
commit | e0b5cf1f21332ffc0f1d45247bc14ce7e86013d4 (patch) | |
tree | dd8099eb10a7c9bd139958fb0b2b9df58186f4ea /render_povray | |
parent | 733df5420693fdcf9ffa587395564ad7ab8bae45 (diff) |
Cleanup
Comment for vertex color was repeated inside the vertex loop creating unnecessary comments.
Diffstat (limited to 'render_povray')
-rw-r--r-- | render_povray/render.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render_povray/render.py b/render_povray/render.py index 3108b4a4..cdccf23c 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -1131,6 +1131,8 @@ def write_pov(filename, scene=None, info_callback=None): tabWrite("texture_list {\n") tabWrite("%d\n" % (((len(me_faces)-quadCount) * 3 )+ quadCount * 4)) # works only with tris and quad mesh for now VcolIdx=0 + if comments: + file.write("\n //Vertex colors: one simple pigment texture per vertex\n") for fi, f in enumerate(me_faces): # annoying, index may be invalid material_index = f.material_index @@ -1151,8 +1153,6 @@ def write_pov(filename, scene=None, info_callback=None): key = col[0], col[1], col[2], material_index # Material index! VcolIdx+=1 vertCols[key] = [VcolIdx] - if comments: - file.write("\n //Vertex colors: one simple pigment texture per vertex\n") if linebreaksinlists: tabWrite("texture {pigment{ color rgb <%6f,%6f,%6f> }}\n" % (col[0], col[1], col[2])) else: |