From 734f7eb12bb9651e6327131594e6da414d2cccd7 Mon Sep 17 00:00:00 2001 From: Maurice Raybaud <mauriceraybaud@hotmail.fr> Date: Wed, 4 Sep 2019 23:57:09 +0200 Subject: [PATCH] render_povray: post 2.8 API ior fix --- render_povray/__init__.py | 2 +- render_povray/render.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/render_povray/__init__.py b/render_povray/__init__.py index 82f964704..678fc4990 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 0c212fb5f..e9f3d457d 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 -- GitLab