[Bf-extensions-cvs] [734f7eb1] master: render_povray: post 2.8 API ior fix
Maurice Raybaud
noreply at git.blender.org
Wed Sep 4 23:58:03 CEST 2019
Commit: 734f7eb12bb9651e6327131594e6da414d2cccd7
Author: Maurice Raybaud
Date: Wed Sep 4 23:57:09 2019 +0200
Branches: master
https://developer.blender.org/rBA734f7eb12bb9651e6327131594e6da414d2cccd7
render_povray: post 2.8 API ior fix
===================================================================
M render_povray/__init__.py
M render_povray/render.py
===================================================================
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
More information about the Bf-extensions-cvs
mailing list