diff options
Diffstat (limited to 'intern/cycles')
-rw-r--r-- | intern/cycles/blender/addon/version_update.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/intern/cycles/blender/addon/version_update.py b/intern/cycles/blender/addon/version_update.py index 7c57bdf453c..827f84b9873 100644 --- a/intern/cycles/blender/addon/version_update.py +++ b/intern/cycles/blender/addon/version_update.py @@ -219,9 +219,12 @@ def do_versions(self): if version <= (2, 93, 16): cscene = scene.cycles - if scene.render.use_simplify and \ - (cscene.ao_bounces or cscene.ao_bounces_render): + ao_bounces = cscene.get("ao_bounces", 0) + ao_bounces_render = cscene.get("ao_bounces_render", 0) + if scene.render.use_simplify and (ao_bounces or ao_bounces_render): cscene.use_fast_gi = True + cscene.ao_bounces = ao_bounces + cscene.ao_bounces_render = ao_bounces_render else: cscene.ao_bounces = 1 cscene.ao_bounces_render = 1 |