render_povray: post 2.8 API ior fix

This commit is contained in:
Maurice Raybaud 2019-09-04 23:57:09 +02:00
parent 9a7d0db875
commit 734f7eb12b
2 changed files with 3 additions and 3 deletions

View File

@ -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",

View File

@ -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