[Bf-blender-cvs] [f0eda573926] blender-v2.93-release: Fix error in Python UI script

Brecht Van Lommel noreply at git.blender.org
Thu Apr 29 19:16:14 CEST 2021


Commit: f0eda573926fa3adc463db84433644f4be759a0c
Author: Brecht Van Lommel
Date:   Thu Apr 29 17:48:14 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rBf0eda573926fa3adc463db84433644f4be759a0c

Fix error in Python UI script

===================================================================

M	intern/cycles/blender/addon/ui.py

===================================================================

diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py
index 0b7f548c792..9aea7725810 100644
--- a/intern/cycles/blender/addon/ui.py
+++ b/intern/cycles/blender/addon/ui.py
@@ -552,8 +552,9 @@ class CYCLES_RENDER_PT_light_paths_fast_gi(CyclesButtonsPanel, Panel):
 
         if world:
           light = world.light_settings
-          sub.prop(light, "ao_factor", text="AO Factor")
-          layout.prop(light, "distance", text="AO Distance")
+          col = layout.column(align=True)
+          col.prop(light, "ao_factor", text="AO Factor")
+          col.prop(light, "distance", text="AO Distance")
 
 
 class CYCLES_RENDER_PT_motion_blur(CyclesButtonsPanel, Panel):



More information about the Bf-blender-cvs mailing list