Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaurice Raybaud <mauriceraybaud@hotmail.fr>2011-05-20 12:38:20 +0400
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2011-05-20 12:38:20 +0400
commit300d949d541ff35ce04d1d9d882157ad02023506 (patch)
tree76d2a8d02e5401e0e6ef1877cc60e1be91a9c7b2 /render_povray
parente17e7188dde374368c141c5e153c3a685c4edf59 (diff)
Another fix by mont29: a bug preventing some scenes to render was due to an indentation error.
Diffstat (limited to 'render_povray')
-rw-r--r--render_povray/__init__.py2
-rw-r--r--render_povray/render.py20
2 files changed, 11 insertions, 11 deletions
diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index 3c3848d3..792b9930 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -20,7 +20,7 @@
bl_info = {
"name": "POV-Ray 3.7",
- "author": "Campbell Barton, Silvio Falcinelli, Maurice Raybaud, Constantin Rahn",
+ "author": "Campbell Barton, Silvio Falcinelli, Maurice Raybaud, Constantin Rahn, Bastien Montagne",
"version": (0, 0, 9),
"blender": (2, 5, 7),
"api": 35622,
diff --git a/render_povray/render.py b/render_povray/render.py
index f4c8042b..b614fabf 100644
--- a/render_povray/render.py
+++ b/render_povray/render.py
@@ -1608,16 +1608,16 @@ def write_pov(filename, scene=None, info_callback=None):
# In POV-Ray, the scale factor for all subsurface shaders needs to be the same
once = 0
- if world:
- tabWrite("ambient_light rgb<%.3g, %.3g, %.3g>\n" % world.ambient_color[:])
-
- if material.pov.photons_refraction or material.pov.photons_reflection:
- tabWrite("photons {\n")
- tabWrite("spacing %.6f\n" % scene.pov.photon_spacing)
- tabWrite("max_trace_level %d\n" % scene.pov.photon_max_trace_level)
- tabWrite("adc_bailout %.3g\n" % scene.pov.photon_adc_bailout)
- tabWrite("gather %d, %d\n" % (scene.pov.photon_gather_min, scene.pov.photon_gather_max))
- tabWrite("}\n")
+ if world:
+ tabWrite("ambient_light rgb<%.3g, %.3g, %.3g>\n" % world.ambient_color[:])
+
+ if material.pov.photons_refraction or material.pov.photons_reflection:
+ tabWrite("photons {\n")
+ tabWrite("spacing %.6f\n" % scene.pov.photon_spacing)
+ tabWrite("max_trace_level %d\n" % scene.pov.photon_max_trace_level)
+ tabWrite("adc_bailout %.3g\n" % scene.pov.photon_adc_bailout)
+ tabWrite("gather %d, %d\n" % (scene.pov.photon_gather_min, scene.pov.photon_gather_max))
+ tabWrite("}\n")
tabWrite("}\n")