diff options
author | Constantin Rahn <conz@vrchannel.de> | 2011-01-18 23:02:26 +0300 |
---|---|---|
committer | Constantin Rahn <conz@vrchannel.de> | 2011-01-18 23:02:26 +0300 |
commit | aaa6c431e21228f97db8c39ec09387319b07a0e6 (patch) | |
tree | f3a2ccebe040c1673c47bc3e2a5cb58e922cb7bc /render_povray/render.py | |
parent | 13f4c169e4cb05827a56f490f500a58d31984d05 (diff) |
Minor change in formatting pov file
Diffstat (limited to 'render_povray/render.py')
-rw-r--r-- | render_povray/render.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/render_povray/render.py b/render_povray/render.py index 33ca98ad..0ac16be5 100644 --- a/render_povray/render.py +++ b/render_povray/render.py @@ -699,7 +699,8 @@ def write_pov(filename, scene=None, info_callback=None): quadCount = sum(1 for f in faces_verts if len(f) == 4) # Use named declaration to allow reference e.g. for baking. MR - tabWrite('#declare %s=\n' % name) + file.write('\n') + tabWrite('#declare %s =\n' % name) tabWrite('mesh2 {\n') tabWrite('vertex_vectors {\n') tabWrite('%s' % (len(me.vertices))) # vert count @@ -1348,7 +1349,7 @@ def write_pov(filename, scene=None, info_callback=None): exportMeta([l for l in sel if l.type == 'META']) if comments: file.write('\n') # <- How can this be written only if the scene contains META? - if comments: file.write('//--Mesh objecs--\n\n') + if comments: file.write('//--Mesh objecs--\n') exportMeshs(scene, sel) #What follow used to happen here: |