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>2019-09-05 00:57:09 +0300
committerMaurice Raybaud <mauriceraybaud@hotmail.fr>2019-09-05 00:57:56 +0300
commit734f7eb12bb9651e6327131594e6da414d2cccd7 (patch)
tree57c609ad54902a5a82c08762166afb256c7879c8 /render_povray
parent9a7d0db875af1ece1f7ed6e10664fddb94f5fb9e (diff)
render_povray: post 2.8 API ior fix
Diffstat (limited to 'render_povray')
-rw-r--r--render_povray/__init__.py2
-rw-r--r--render_povray/render.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/render_povray/__init__.py b/render_povray/__init__.py
index 82f96470..678fc499 100644
--- a/render_povray/__init__.py
+++ b/render_povray/__init__.py
@@ -1390,7 +1390,7 @@ class RenderPovSettingsMaterial(PropertyGroup):
description="Values typically range from 0.0 to 1.0 or higher. Zero is no caustics. "
"Low, non-zero values give broad hot-spots while higher values give "
"tighter, smaller simulated focal points",
- min=0.00, max=10.0, soft_min=0.00, soft_max=5.0, default=0.07)
+ min=0.00, max=10.0, soft_min=0.00, soft_max=5.0, default=0.15)
refraction_caustics: BoolProperty(
name="Refractive Caustics", description="hotspots of light focused when going through the material",
diff --git a/render_povray/render.py b/render_povray/render.py
index 0c212fb5..e9f3d457 100644
--- a/render_povray/render.py
+++ b/render_povray/render.py
@@ -451,10 +451,10 @@ def write_pov(filename, scene=None, info_callback=None):
# reflections if IOR Mirror option is checked.
elif material.pov.mirror_use_IOR:
tabWrite("interior {\n")
- tabWrite("ior %.6f\n" % material.pov.ior)
+ tabWrite("ior %.6f\n" % material.pov_raytrace_transparency.ior)
else:
tabWrite("interior {\n")
- tabWrite("ior %.6f\n" % material.pov.ior)
+ tabWrite("ior %.6f\n" % material.pov_raytrace_transparency.ior)
pov_fake_caustics = False
pov_photons_refraction = False